From 55f190a4ba6a6753228e1a59587c8402b390fd63 Mon Sep 17 00:00:00 2001 From: rtk0c Date: Wed, 24 Sep 2025 01:14:24 +0000 Subject: Fix _alias() example semantic _alias takes a type, generates a type. So textually, it must take another Lua variable, or a call to _t --- cm/ex01.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cm') 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({ -- cgit v1.3.1