diff lwasm/main.c @ 375:71f507f404f1

Add "testmode" pragma Add a pragma to allow testing more easily. Thanks to Erik G <erik@6809.org> for the patch.
author William Astle <lost@l-w.ca>
date Mon, 13 Jul 2015 20:35:16 -0600
parents 8e25147c2aa8
children 1ebb5a0b2874
line wrap: on
line diff
--- a/lwasm/main.c	Mon Jul 13 20:31:56 2015 -0600
+++ b/lwasm/main.c	Mon Jul 13 20:35:16 2015 -0600
@@ -361,5 +361,8 @@
 	}
 	do_list(&asmstate);
 	do_map(&asmstate);
+
+	if (asmstate.testmode_errorcount > 0) exit(1);
+
 	exit(0);
 }