lua-users home
lua-l archive

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


Will this still work in 5.1? I mean -- will the redirection of "_ALERT" to a
C-call still catch run-time error messages.

      lua_pushstring(m_L, "_ALERT");
      lua_pushlightuserdata(m_L, this);
      lua_pushcclosure(m_L, error_callback, 1);
      lua_setglobal(m_L, "_ALERT");

I ask because Roberto said on 4/7/2004:

> Some of these facilities are deprecated (_ALERT, callalert). We will try
> to add a macro to be used by the other facilities.



--
Quinn Tyler Jackson

http://members.shaw.ca/qjackson/