lua_register

lua_register[-0, +0, e]

void lua_register (lua_State *L, const char *name, lua_CFunction f);

Sets the C function f as the new value of global name. It is defined as a macro:

#define lua_register(L,n,f) \
       (lua_pushcfunction(L, f), lua_setglobal(L, n))
doc_lua
2025-01-10 15:47:30
Comments
Leave a Comment

Please login to continue.