From a722eb5c4d34a787d4549c5fcfbe3434a680f5f2 Mon Sep 17 00:00:00 2001 From: CleverMouse Date: Wed, 24 Aug 2011 13:11:18 +0000 Subject: [PATCH] get sizeof.* really working for struct/ends definitions git-svn-id: svn://kolibrios.org@2115 a494cfbc-eb01-0410-851d-a64ba20cac60 --- kernel/trunk/macros.inc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/kernel/trunk/macros.inc b/kernel/trunk/macros.inc index e99a17ec97..1a90f44f6c 100644 --- a/kernel/trunk/macros.inc +++ b/kernel/trunk/macros.inc @@ -20,13 +20,16 @@ macro struct name, [arg] struc name arg { } +macro declare_sizeof xname,value +{ sizeof.#xname = value } + macro struct_helper name { match xname,name \{ virtual at 0 xname xname - sizeof.#xname = $ - xname + declare_sizeof xname, $ - xname name equ sizeof.#xname end virtual \}