comparison lwasm/lwasm.c @ 348:11a95c6414b4

Added third func to instab to split resolve and emit logic
author lost@starbug
date Sat, 27 Mar 2010 22:15:07 -0600
parents 1649bc7bda5a
children 4dba8c7e242c
comparison
equal deleted inserted replaced
347:1649bc7bda5a 348:11a95c6414b4
479 479
480 if (lw_expr_istype(expr, lw_expr_type_int)) 480 if (lw_expr_istype(expr, lw_expr_type_int))
481 { 481 {
482 v = lw_expr_intval(expr); 482 v = lw_expr_intval(expr);
483 } 483 }
484 // handle external/cross-section/incomplete references here
484 else 485 else
485 { 486 {
486 lwasm_register_error(l -> as, l, "Expression not fully resolved"); 487 lwasm_register_error(l -> as, l, "Expression not fully resolved");
487 return -1; 488 return -1;
488 } 489 }