view portasm/gen-masm.sh @ 578:87b5f5d7af1f

callback_plain_c++: improved cross-platform robustness of faked thiscall used for testing
author Tassilo Philipp
date Thu, 08 Sep 2022 16:15:52 +0200
parents ab2d78e48ca2
children
line wrap: on
line source

#!/bin/sh
`which gcc || which clang` -E -P -DGEN_MASM ${1:?Usage: $0 <name> [<outsuffix>]}.S \
	| sed "/^$/d;1i\\
; auto-generated by `basename $0`
;s/$/
/" \
	> $1$2.asm