Actions |
XLua supports two modes of triggering print events: Immediate and Queued modes. In Immediate Mode, when print() is called from a script, any On Print events will be triggerred for immediate execution. In Queued Mode, the On Print events will wait to be executed at the end of the event loop.
See Error Event Modes for more discussion on the differences between Immediate and Queued modes, but in general printing is a better controlled behavior and is less likely to inflict problems when used with Immediate Mode.
Set Immediate
Sets future print events to immediate mode. Immediate mode causes any On Print triggered events to execute immediately when a native print() function is used in Lua.
Parameters
None.
Set Queued
Sets future error events to queued mode. Queued mode causes any On Print triggered events from when a native print() function is used in Lua to be queued up and executed at the end of MMF's event loop.
Parameters
None.
Copyright 2010 Justin Aquadro