lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


> But we need the native 
> size of int (and short, and long, and size_t) not lua_Integer.

sizeof int and size_t can be extracted from the headers of precompiled
Lua functions:

    s=string.dump(function()end)
    print("int",s:byte(13))
    print("size_t",s:byte(14))

but I get your point... :-)