luad.conversions.structs

Internal module for pushing and getting structs.

A struct is treated as a table layout schema. Pushing a struct to Lua will create a table and fill it with key-value pairs - corresponding to struct fields - from the struct; the field name becomes the table key as a string. Struct methods are treated as if they were delegate fields pointing to the method. For an example, see the "Configuration File" example on the front page.

Members

Functions

fillStruct
void fillStruct(lua_State* L, int idx, T s)
Undocumented in source. Be warned that the author may not have intended to support it.
getStruct
T getStruct(lua_State* L, int idx)
Undocumented in source. Be warned that the author may not have intended to support it.
pushStruct
void pushStruct(lua_State* L, T value)
Undocumented in source. Be warned that the author may not have intended to support it.

Structs

S
struct S
Undocumented in source.

Meta