|
|
||
|
On Apr 3, 2008, at 12:27 AM, Javier Guerra wrote:
Hmmm, that is even worse unfortunately because I don't want to recompile the script over and over again. Some Lua variables may contain valuable informations and on the first callOn Wed, Apr 2, 2008 at 4:12 PM, Eugen-Andrei Gavriloaie <shiretu@gmail.com> wrote:So, on the second lua_evaluate_expression call from C++ I will have a value
of 2 instead of the string 'mysql' pushed on the stack because the entire
script execution stops at the first return. Am I right?
no, each call to lua_evaluate_expression() would compile and execute a new script in the same context. it won't 'accumulate' a long script.
-- Javier
Thank you