diff lwasm/lwasm.h @ 101:ed7f970f3688

Added --define= option to predfine a symbol for assembly
author lost@l-w.ca
date Sat, 06 Aug 2011 22:15:43 -0600
parents 428068681cbf
children 344cfc25afec
line wrap: on
line diff
--- a/lwasm/lwasm.h	Sat Aug 06 10:51:33 2011 -0600
+++ b/lwasm/lwasm.h	Sat Aug 06 22:15:43 2011 -0600
@@ -328,6 +328,6 @@
 
 
 #define OPLEN(op) (((op)>0xFF)?2:1)
-#define CURPRAGMA(l,p)	(((l)->pragmas & (p)) ? 1 : 0)
+#define CURPRAGMA(l,p)	(((l) && ((l)->pragmas & (p))) ? 1 : 0)
 
 #endif /* ___lwasm_h_seen___ */