diff options
| author | rtk0c <[email protected]> | 2025-09-24 01:14:24 +0000 |
|---|---|---|
| committer | rtk0c <[email protected]> | 2025-10-15 20:28:15 +0000 |
| commit | 55f190a4ba6a6753228e1a59587c8402b390fd63 (patch) | |
| tree | 1820fc47017d512767abe6ab0c339a3ab084e7bb | |
| parent | 5124eb80701523ac16928219e9a1031eded128ef (diff) | |
Fix _alias() example semantic
_alias takes a type, generates a type. So textually, it must take another Lua variable, or a call to _t
| -rw-r--r-- | cm/ex01.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cm/ex01.lua b/cm/ex01.lua index feaf876..636ea2a 100644 --- a/cm/ex01.lua +++ b/cm/ex01.lua @@ -12,7 +12,7 @@ Bar = _struct({ compound_field = _t("Foo"), }) -uint32 = _alias("u32") +uint32 = _alias(_t("u32")) -- Note, defined after Bar! Foo = _struct({ |
