lua-users home
lua-l archive

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


> The manual says:
>
>  lua_tolstring returns a fully aligned pointer to a string inside the
>  Lua state.
>
> The string itself is stored just after this structure:
>
>  #define getstr(ts)      cast(const char *, (ts) + 1)

Thank you, I understood that. The part that I don't understand is why
does the string have to be fully aligned.

Best,
Bogdan