[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: how to call lua scripts from C/C++ without recompiling eachtime?
- From: "Wim Couwenberg" <w.couwenberg@...>
- Date: Tue, 2 Sep 2003 15:32:05 +0200
There is no luaL_getref because you don't need it! You could define it as
an alias of lua_rawgeti if you like ("references" are stored in the provided
table under numeric keys.)
As Luiz pointed out, there are some macro's in lua.h (lua_ref, lua_getref
and lua_unref) for compatibility with Lua 4. They simply use the lua
registry as the table to store references.
--
Wim