Re: protect a set in c (non-existing elements)
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Re: protect a set in c (non-existing elements)
- From: Dirk Laurie <dirk.laurie@...>
- Date: 2014年2月14日 18:04:30 +0200
2014年02月14日 17:40 GMT+02:00 Thijs Schreijer <thijs@thijsschreijer.nl>:
> Btw is it possible to pass parameters to lua code loaded with luaL_loadstring?
>From the manual:
int luaL_dostring (lua_State *L, const char *str);
Loads and runs the given string. It is defined as the following macro:
(luaL_loadstring(L, str) || lua_pcall(L, 0, LUA_MULTRET, 0))
You can use that code, modified to pass parameters to lua_pcall.