changeset 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
files lwasm/struct.c
diffstat 1 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/lwasm/struct.c	Mon Apr 04 22:10:16 2011 -0600
+++ b/lwasm/struct.c	Mon Apr 04 22:15:33 2011 -0600
@@ -205,6 +205,12 @@
 		lwasm_register_error(as, l, "Cannot declare a structure without a symbol name.");
 		return -1;
 	}
+
+	if (as -> instruct)
+	{
+		lwasm_register_error(as, l, "Nested structures not currently supported");
+		return -1;
+	}
 	
 	l -> len = s -> size;