view libtwamr/namespace.awk @ 448:a2065e7d68bc

top Makefile: move libtwamr to SUBDIR_LIBPROD
author Mychaela Falconia <falcon@freecalypso.org>
date Fri, 10 May 2024 01:30:26 +0000
parents b22f13fd0f6a
children
line wrap: on
line source

# This awk script generates namespace.h from namespace.list

BEGIN {
	print "/* Auto-generated; do not edit! */"
	print ""
	print "#ifndef	namespace_h"
	print "#define	namespace_h"
	print ""
}

{
	for (i = 1; i <= NF; i++) {
		if ($i ~ /^#/)
			break;
		printf "#define	%s	amr__%s\n", $i, $i;
	}
}

END {
	print ""
	print "#endif"
}