Beispiel #1
0
void luaT_push(lua_State *L, lua_CFunction f)
{
    luaT_pushcfunction(L, f);
}
Beispiel #2
0
inline void load_extra(lua_State *L, const char *name, lua_CFunction fn)
{
    luaT_pushcfunction(L, fn);
    lua_call(L, 0, 1);
    lua_setfield(L, -2, name);
}