changeset 462:da72c084e0ac

Add some more debugging junk.
author William Astle <lost@l-w.ca>
date Wed, 28 Feb 2018 22:40:07 -0700
parents c8d4f3486ad7
children 42be9eec7935
files lwasm/pragma.c
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/lwasm/pragma.c	Wed Feb 28 20:54:53 2018 -0700
+++ b/lwasm/pragma.c	Wed Feb 28 22:40:07 2018 -0700
@@ -110,6 +110,7 @@
 		p = lw_token(np, ',', &np);
 		debug_message(as, 200, "Setting/resetting pragma %s", p);
 		pragma = parse_pragma_helper(p);
+		debug_message(as, 200, "Got pragma code %08X", pragma);
 		lw_free(p);
 
 		if (pragma == 0 && !ignoreerr)
@@ -119,6 +120,8 @@
 			as->pragmas &= ~pragma;
 		else
 			as->pragmas |= pragma;
+		
+		debug_message(as, 200, "New pragma state: %08X", as -> pragmas);
 	}
 	return 1;
 }