[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: lua_pushstring during script parsing
- From: "Andreas Falkenhahn" <andreas@...>
- Date: Sat, 04 Jun 2005 20:55:33 +0200
I noticed that the line that actually causes the crash is
which is a macro that calls luaC_collectgarbage() from time
to time. If I comment that line out, it does not crash any more.
But that does not really help me.
If it's not allowed to call lua_pushstring or lua_newtable etc.
during the parser is active, is there any other way to store data
in the registry during script parsing?
Any help appreciated.
On 04.06.2005 at 00:14 Andreas Falkenhahn wrote:
>I tried to store some data in the lua registry during script parsing. If I
>lua_pushstring(ls->L, "hello world");
>in lparser.c/statement(), my program usually crashes. So my question is:
>Is it allowed to use lua API functions like lua_pushstring, lua_newtable,
>lua_gettable etc. to store data in the registry while lua is in parsing
>Or should those functions only be used in lua libraries?
>"Remember: It's nice to be important but it's more important to be nice!"
"Remember: It's nice to be important but it's more important to be nice!"