-# echo "_$a equ $a" >> $1
-# echo "PUBLIC _$a" >> $1
- a=`echo $a | awk -F@ '{print $1}'`
- echo "PUBLIC $a" >> $1
+ name=`echo $a | awk -F@ '{print $1}'`
+ n=`grep "\<$name\>" ${asm}_funcs` || \
+ n=`grep "\<_$name\>" ${asm}_funcs` || true
+ if test -z "$n"; then
+ echo "\"$name\" is expected to be in asm, but was not found"
+ rm $public_inc
+ exit 1
+ fi
+ echo "PUBLIC $n" >> $public_inc