From 5082b8602e5e731ef78a569c4c153ffeea017758 Mon Sep 17 00:00:00 2001 From: Kyle Gunger Date: Thu, 16 Feb 2023 05:43:13 -0500 Subject: Struct in struct definition --- tnslc/tnslc.tnsl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'tnslc/tnslc.tnsl') diff --git a/tnslc/tnslc.tnsl b/tnslc/tnslc.tnsl index 8bad758..aea8bca 100644 --- a/tnslc/tnslc.tnsl +++ b/tnslc/tnslc.tnsl @@ -1084,7 +1084,9 @@ ;; else if (p >== 0) ;s = s + p ;; else - ;~Type tp = m`.find_type(t`.members{i}.data_type.name) + ;tnsl.io.println("STRUCT!!!!!!") + ;{}{}uint8 artifact = { t`.members{i}.data_type.name } + ;~Type tp = m`.find_type(artifact) /; if (tp`.s == 0) ;size_struct(tp, m) ;/ -- cgit v1.2.3