get sizeof.* really working for struct/ends definitions

git-svn-id: svn://kolibrios.org@2115 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
CleverMouse 2011-08-24 13:11:18 +00:00
parent a7589ea8ee
commit a722eb5c4d

View File

@ -20,13 +20,16 @@ macro struct name, [arg]
struc name arg { struc name arg {
} }
macro declare_sizeof xname,value
{ sizeof.#xname = value }
macro struct_helper name macro struct_helper name
{ {
match xname,name match xname,name
\{ \{
virtual at 0 virtual at 0
xname xname xname xname
sizeof.#xname = $ - xname declare_sizeof xname, $ - xname
name equ sizeof.#xname name equ sizeof.#xname
end virtual end virtual
\} \}