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 \}