Mercurial > hg-old > index.cgi
diff src/lwasm.c @ 52:b9856da2674a
Added file inclusion
author | lost |
---|---|
date | Sun, 04 Jan 2009 20:16:38 +0000 |
parents | 4bb7b723e5b7 |
children | 8e32696380f3 |
line wrap: on
line diff
--- a/src/lwasm.c Sun Jan 04 20:14:54 2009 +0000 +++ b/src/lwasm.c Sun Jan 04 20:16:38 2009 +0000 @@ -170,11 +170,13 @@ struct symstateinfo *st; st = state; - + debug_message(3, "lwasm_expr_lookup_symbol(): find '%s' (context=%d)", sym, st -> as -> context); + // look for local symbol first then global symbol se = lwasm_find_symbol(st -> as, sym, st -> as -> context); if (!se) se = lwasm_find_symbol(st -> as, sym, -1); + debug_message(3, "lwasm_expr_lookup_symbol(): got '%p'", se); if (!se) return -1; *val = se -> value;