Mercurial > hg > index.cgi
comparison lwasm/pass2.c @ 370:8764142b3192
Convert internal error/warning handling framework to a new unified system
Replace the ad hoc error and warning handling with a new system that
codifies the errors with specific codes. This makes it possible in the
future for error numbers to be used for testing and other purposes. It also
makes sure the error strings themselves are consistent.
Thanks to Erik G <erik@6809.org> for the patch.
author | William Astle <lost@l-w.ca> |
---|---|
date | Mon, 22 Jun 2015 18:49:38 -0600 |
parents | 697bc543368c |
children |
comparison
equal
deleted
inserted
replaced
369:682524a1f32f | 370:8764142b3192 |
---|---|
65 } | 65 } |
66 } | 66 } |
67 else | 67 else |
68 { | 68 { |
69 // undefined export - register error | 69 // undefined export - register error |
70 lwasm_register_error(as, ex -> line, "Undefined exported symbol"); | 70 lwasm_register_error(as, ex->line, E_SYMBOL_UNDEFINED_EXPORT); |
71 } | 71 } |
72 } | 72 } |
73 ex -> se = s; | 73 ex -> se = s; |
74 } | 74 } |
75 if (as -> errorcount > 0) | 75 if (as -> errorcount > 0) |