comparison lwasm/struct.c @ 47:1d6a31a2586b

Fixed multiple symbol error with nested structs
author lost@l-w.ca
date Mon, 04 Apr 2011 22:15:33 -0600
parents 534bfa3389b0
children 1134255553bc
comparison
equal deleted inserted replaced
46:534bfa3389b0 47:1d6a31a2586b
203 if (!(l -> sym)) 203 if (!(l -> sym))
204 { 204 {
205 lwasm_register_error(as, l, "Cannot declare a structure without a symbol name."); 205 lwasm_register_error(as, l, "Cannot declare a structure without a symbol name.");
206 return -1; 206 return -1;
207 } 207 }
208
209 if (as -> instruct)
210 {
211 lwasm_register_error(as, l, "Nested structures not currently supported");
212 return -1;
213 }
208 214
209 l -> len = s -> size; 215 l -> len = s -> size;
210 216
211 if (as -> instruct) 217 if (as -> instruct)
212 { 218 {