|
Luwra
Minimal-overhead Lua wrapper for C++
|
Namespaces | |
| namespace | luwra |
| namespace | luwra::internal |
Macros | |
| #define | LUWRA_WRAP(entity) (&luwra::internal::Wrapper<decltype(&entity)>::template invoke<&entity>) |
Generate a lua_CFunction wrapper for a field, method or function. | |
| #define | LUWRA_WRAP_MEMBER(base, name) (&luwra::internal::MemberWrapper<decltype(&__LUWRA_NS_RESOLVE(base, name)), base>::template invoke<&__LUWRA_NS_RESOLVE(base, name)>) |
Same as LUWRA_WRAP but specifically for members of a class. It is imperative that you use this macro instead of LUWRA_WRAP when working with inherited members. | |
| #define LUWRA_WRAP | ( | entity | ) | (&luwra::internal::Wrapper<decltype(&entity)>::template invoke<&entity>) |
Generate a lua_CFunction wrapper for a field, method or function.
| entity | Qualified named of the entity that shall be wrapped |
lua_CFunction | #define LUWRA_WRAP_MEMBER | ( | base, | |
| name | |||
| ) | (&luwra::internal::MemberWrapper<decltype(&__LUWRA_NS_RESOLVE(base, name)), base>::template invoke<&__LUWRA_NS_RESOLVE(base, name)>) |
Same as LUWRA_WRAP but specifically for members of a class. It is imperative that you use this macro instead of LUWRA_WRAP when working with inherited members.
| base | Qualified name of the targeted class |
| name | Unqualified name of the member that shall be wrapped |
lua_CFunction