[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: lua_pcall error
- From: Rici Lake <lua@...>
- Date: Wed, 27 Sep 2006 01:17:41 -0500
On 27-Sep-06, at 12:50 AM, Wesley Smith wrote:
err = luaL_loadstring(x->lua, *(x->texthandle));
All this does is compile the text into a chunk (i.e. function).
Until you call the function, nothing happens. In particular,
the function statement is not executed, so the global draw is
Once you call the compiled chunk, it works because then the
global draw is defined.