[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: lua_cstack_reset?
- From: rw20@...
- Date: Tue, 3 Aug 1999 12:33:27 -0400 (EDT)
In some application one knows for certain that the lua-C stack should be
clear. For instance, when lua only runs in response to and event of some
sort you can clear the stacks before sending the event to lua.
I guess guess the best thing to do is actually manage the stack with
lua_beginblock and lua_endblock statements, but is there anything wrong
with using lua_cstack_reset in such cases?
in lua 3.1 something like this seemed to work:
// zero the cstack