summaryrefslogtreecommitdiff
path: root/tnslc/tnslc.tnsl
diff options
context:
space:
mode:
authorKyle Gunger <kgunger12@gmail.com>2023-02-16 05:43:13 -0500
committerKyle Gunger <kgunger12@gmail.com>2023-02-16 05:43:13 -0500
commit5082b8602e5e731ef78a569c4c153ffeea017758 (patch)
treee694318ebb41abef87e911a3f6d34888bd71f7b5 /tnslc/tnslc.tnsl
parent4ee14bcffda862335901fd2050c09c10636ca0a6 (diff)
Struct in struct definition
Diffstat (limited to 'tnslc/tnslc.tnsl')
-rw-r--r--tnslc/tnslc.tnsl4
1 files changed, 3 insertions, 1 deletions
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)
;/