lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]

On Mon, 7 Apr 2008, Abhinav Lele wrote:

I registered a C function in Lua using

how i can do the reverse , i.e. remove the function from lua environment

Firt thing I would try would be something like:

lua_pushstring( L, "fn" );
lua_pushnil( L );
lua_settable( L, LUA_GLOBALSINDEX );
roger ivie