[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: lua_pushstring during script parsing
- From: "Andreas Falkenhahn" <andreas@...>
- Date: Sat, 04 Jun 2005 00:14:09 +0200
I tried to store some data in the lua registry during script parsing. If I call
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 mode?
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!"