[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Memory errors from luaL_loadbuffer and luaL_loadstring
- From: Peter Cawley <lua@...>
- Date: Tue, 7 Apr 2009 23:58:26 +0100
The manual lists [-0, +1, m] for luaL_loadbuffer and luaL_loadstring.
These functions only call lua_load from the Lua API, which itself is
marked as [-0, +1, -] in the manual. This seems contradictory -
lua_load will not throw memory errors (it'll return them, which is
different to throwing them), yet luaL_loadbuffer and luaL_loadstring,
which only call lua_load, _can_ throw memory errors?
Is the manual mistaken here, or is it possible for luaL_loadbuffer and
luaL_loadstring to throw memory errors?