lua-users home
lua-l archive

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


> lua_newthread() does not seem to be checking its
> state allocation (luaE_newthread->mallocstate
> in state.c) for possible failure.

It doesn't need to. luaM_malloc never returns NULL when called with a
non-null lua state (it throws an error, instead).

-- Roberto