[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Lua 5.2 work3 and luaL_openlibs
- From: liam mail <liam.list@...>
- Date: Sat, 22 May 2010 12:23:21 +0100
The effect of calling luaL_openlibs has changed since 5.14 and 5.2 work2 and as I do not see it documented I would assume that it is a bug. I did post this a few days ago yet it seems it was lost in the sea of that thread.
luaL_openlibs does not leave the stack clean in work 3. The
following fails with two entries left on the stack, the maths string
key and (it's ?) a table.
lua_State* L = luaL_newstate();
luaL_openlibs(L);
CPPUNIT_ASSERT_EQUAL(0,lua_gettop(L));
Compiled on Mac OS X
Liam