lua-users home
lua-l archive

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


Matt Holmes wrote:
> 
> void VLLuaHandler::SetErrorHandler()
> {
>  if(m_cState)
>  {
>   lua_setglobal(m_cState, "_handler");
>   lua_pushusertag(m_cState, this, LUA_ANYTAG);

If you want to store the userdata in _handler you better swap the
last two lines...

Ciao, ET.