lua-users home
lua-l archive

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


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