diff src/lwasm.h @ 143:0ee5f65bccf9

Added pragma to allow all undefined symbols to be considered external and also added a --pragma command line option
author lost
date Thu, 29 Jan 2009 01:32:11 +0000
parents f59c0916753d
children
line wrap: on
line diff
--- a/src/lwasm.h	Wed Jan 28 06:06:05 2009 +0000
+++ b/src/lwasm.h	Thu Jan 29 01:32:11 2009 +0000
@@ -178,7 +178,10 @@
 	sectiontab_t *csect;		// current section - NULL if not in one
 } asmstate_t;
 
+// do not rewrite XXX,r to ,r if XXX evaluates to 0
 #define PRAGMA_NOINDEX0TONONE	1
+// any undefined symbols are considered external
+#define PRAGMA_UNDEFEXTERN	2
 
 #ifndef __lwasm_c_seen__
 #define __lwasm_E__ extern