mirror of https://github.com/rusefi/lua.git
detail about 'trick' function (nil turn it off)
This commit is contained in:
parent
95ed6c1127
commit
5645a84368
5
ltests.c
5
ltests.c
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
** $Id: ltests.c,v 2.121 2011/07/02 15:59:17 roberto Exp roberto $
|
** $Id: ltests.c,v 2.122 2011/08/23 17:24:34 roberto Exp roberto $
|
||||||
** Internal Module for Debugging of the Lua Implementation
|
** Internal Module for Debugging of the Lua Implementation
|
||||||
** See Copyright Notice in lua.h
|
** See Copyright Notice in lua.h
|
||||||
*/
|
*/
|
||||||
|
@ -595,6 +595,9 @@ static int mem_query (lua_State *L) {
|
||||||
|
|
||||||
|
|
||||||
static int settrick (lua_State *L) {
|
static int settrick (lua_State *L) {
|
||||||
|
if (ttisnil(obj_at(L, 1)))
|
||||||
|
l_Trick = NULL;
|
||||||
|
else
|
||||||
l_Trick = gcvalue(obj_at(L, 1));
|
l_Trick = gcvalue(obj_at(L, 1));
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue