comparison 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
comparison
equal deleted inserted replaced
374:8e25147c2aa8 375:71f507f404f1
359 debug_message(&asmstate, 50, "Invoking unicorns"); 359 debug_message(&asmstate, 50, "Invoking unicorns");
360 lwasm_do_unicorns(&asmstate); 360 lwasm_do_unicorns(&asmstate);
361 } 361 }
362 do_list(&asmstate); 362 do_list(&asmstate);
363 do_map(&asmstate); 363 do_map(&asmstate);
364
365 if (asmstate.testmode_errorcount > 0) exit(1);
366
364 exit(0); 367 exit(0);
365 } 368 }