Functions | |
| static int | protected_getglobal (lua_State *state) |
| Wrapper around lua_getglobal to run in a protected environment. | |
| static int | protected_gettable (lua_State *state) |
| Wrapper around lua_gettable to run in a protected environment. | |
| static int | protected_next (lua_State *state) |
| Wrapper around lua_next to run in a protected environment. | |
| static int | protected_setglobal (lua_State *state) |
| Wrapper around lua_setglobal to run in a protected environment. | |
| static int | protected_settable (lua_State *state) |
| Wrapper around lua_settable to run in a protected environment. | |
| static int | call_cxx_function_from_c (lutok::cxx_function function, lua_State *raw_state) throw () |
| Calls a C++ Lua function from a C calling environment. | |
| static int | cxx_closure_trampoline (lua_State *raw_state) |
| Lua glue to call a C++ closure. | |
| static int | cxx_function_trampoline (lua_State *raw_state) |
| Lua glue to call a C++ function. | |
| static int anonymous_namespace{state.cpp}::call_cxx_function_from_c | ( | lutok::cxx_function | function, |
| lua_State * | raw_state | ||
| ) | throw () [static] |
Calls a C++ Lua function from a C calling environment.
Any errors reported by the C++ function are caught and reported to the caller as Lua errors.
| function | The C++ function to call. |
| raw_state | The raw Lua state. |
| static int anonymous_namespace{state.cpp}::cxx_closure_trampoline | ( | lua_State * | raw_state | ) | [static] |
Lua glue to call a C++ closure.
This Lua binding is actually a closure that we have constructed from the state.push_cxx_closure() method. The closure contains the same upvalues provided by the user plus an extra upvalue that contains the address of the C++ function we have to call. All we do here is safely delegate the execution to the wrapped C++ closure.
| raw_state | The Lua C API state. |
| static int anonymous_namespace{state.cpp}::cxx_function_trampoline | ( | lua_State * | raw_state | ) | [static] |
Lua glue to call a C++ function.
This Lua binding is actually a closure that we have constructed from the state.push_cxx_function() method. The closure has a single upvalue that contains the address of the C++ function we have to call. All we do here is safely delegate the execution to the wrapped C++ function.
| raw_state | The Lua C API state. |
| static int anonymous_namespace{state.cpp}::protected_getglobal | ( | lua_State * | state | ) | [static] |
Wrapper around lua_getglobal to run in a protected environment.
| state | The Lua C API state. |
| static int anonymous_namespace{state.cpp}::protected_gettable | ( | lua_State * | state | ) | [static] |
Wrapper around lua_gettable to run in a protected environment.
| state | The Lua C API state. |
| static int anonymous_namespace{state.cpp}::protected_next | ( | lua_State * | state | ) | [static] |
Wrapper around lua_next to run in a protected environment.
| state | The Lua C API state. |
| static int anonymous_namespace{state.cpp}::protected_setglobal | ( | lua_State * | state | ) | [static] |
Wrapper around lua_setglobal to run in a protected environment.
| state | The Lua C API state. |
| static int anonymous_namespace{state.cpp}::protected_settable | ( | lua_State * | state | ) | [static] |
Wrapper around lua_settable to run in a protected environment.
| state | The Lua C API state. |
1.8.0