[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: luaopen_io() gives panic...
- From: "Thomas Harning Jr." <harningt@...>
- Date: Fri, 30 Mar 2007 22:03:48 -0400
luaopen_io is a function that should be called from within Lua.....
if thats the best way to term it..
Proper code...
lua_State* L = luaL_newstate(); /* lua_open is a compatbility macro to
point to luaL_newstate, which configures malloc/realloc/free as memory
functions.. */
lua_pushcfunction(L, luaopen_io);
lua_call(L, 0, 0);
...
--
Thomas Harning Jr.