view portasm/gen-masm.sh @ 517:f8856e29b512

- tests: made "ordered" signature generation code shareable, and added possibility to specify return types, separately (mainly to include 'void')
author Tassilo Philipp
date Mon, 11 Apr 2022 14:50:35 +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