[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Remove Lua C binding
- From: Roger Ivie <rivie@...>
- Date: Sun, 6 Apr 2008 23:52:38 -0700 (PDT)
On Mon, 7 Apr 2008, Abhinav Lele wrote:
I registered a C function in Lua using
lua_pushstring("fn");
lua_pushcfunction(fn);
lua_settable(L,LUA_GLOBALSINDEX);
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
rivie@ridgenet.net