Mercurial > hg > index.cgi
diff lwasm/main.c @ 226:7c2c2239ec9c
Make unicorns grok errors and warnings.
Added unicorn formatted error and warning output and also a framework to
handle errors which know which character position in the line they occurred
in.
author | William Astle <lost@l-w.ca> |
---|---|
date | Sun, 15 Jul 2012 21:19:43 -0600 |
parents | 3864d96ee8c7 |
children | 164487152dd9 |
line wrap: on
line diff
--- a/lwasm/main.c Sun Jul 15 21:19:04 2012 -0600 +++ b/lwasm/main.c Sun Jul 15 21:19:43 2012 -0600 @@ -291,8 +291,10 @@ // stop processing immediately break; } - lwasm_do_unicorns(&asmstate); - lwasm_show_errors(&asmstate); + if (asmstate.flags & FLAG_UNICORNS) + lwasm_do_unicorns(&asmstate); + else + lwasm_show_errors(&asmstate); exit(1); } }