lua-users home
lua-l archive

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

After error some modules return nil and error message.
In my module i want to save the error code in lua_State
(or errno?) and return nil. And needed global function
to get this error code. To get error message module
must have another function.
Eg., module.strerror( errcode() )

Also i want compare this code from another.
Eg., if errcode() == module.err.nomem then ...

Where is store this code: errno, lua_State->errorJmp.status
or add new member to lua_State (int errcode)?

Sorry for my english