comparison 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
comparison
equal deleted inserted replaced
100:7ce01324e391 101:ed7f970f3688
326 extern void debug_message(asmstate_t *as, int level, const char *fmt, ...); 326 extern void debug_message(asmstate_t *as, int level, const char *fmt, ...);
327 extern void dump_state(asmstate_t *as); 327 extern void dump_state(asmstate_t *as);
328 328
329 329
330 #define OPLEN(op) (((op)>0xFF)?2:1) 330 #define OPLEN(op) (((op)>0xFF)?2:1)
331 #define CURPRAGMA(l,p) (((l)->pragmas & (p)) ? 1 : 0) 331 #define CURPRAGMA(l,p) (((l) && ((l)->pragmas & (p))) ? 1 : 0)
332 332
333 #endif /* ___lwasm_h_seen___ */ 333 #endif /* ___lwasm_h_seen___ */