Geogram
Version 1.9.1-rc
A programming library of geometric algorithms
|
Manages wrappers around C++ functions to be called from LUA. More...
#include <geogram/lua/lua_wrap.h>
Static Public Member Functions | |
static int | call (lua_State *L) |
Implementation of the wrapper. More... | |
static void | push (lua_State *L, FPTR f) |
Pushes a wrapper for a given C++ function onto the LUA stack. More... | |
Manages wrappers around C++ functions to be called from LUA.
This class should not be used directly by client code. Client code will rather use the high-level macro lua_bindwrapper() or the lower-level functions lua_bindwrapperwithname() and lua_pushwrapper().
Definition at line 1224 of file lua_wrap.h.
|
inlinestatic |
Implementation of the wrapper.
This is the C functions to be declared to LUA. It is typed by the signature of the wrapped C++ function, and the pointer to the actual wrapped C++ function is stored in an upvalue.
[in] | L | a pointer to the LUA state. |
Definition at line 1235 of file lua_wrap.h.
|
inlinestatic |
Pushes a wrapper for a given C++ function onto the LUA stack.
[in] | L | a pointer to the LUA state. |
[in] | f | a pointer to the C++ function to be pushed. It cannot be a non-static object's member function. |
Definition at line 1250 of file lua_wrap.h.