diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2011-09-24 18:11:29 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2011-09-24 18:11:29 -0300 |
commit | 5645a84368f2a515281da60f96e09d0fdeaf0470 (patch) | |
tree | a6b5f8f7ee77d60d2b4b6d651c7ead6fdde52ad6 | |
parent | 95ed6c1127e3d2902ea460947c69a1c14096508a (diff) | |
download | lua-5645a84368f2a515281da60f96e09d0fdeaf0470.tar.gz lua-5645a84368f2a515281da60f96e09d0fdeaf0470.tar.bz2 lua-5645a84368f2a515281da60f96e09d0fdeaf0470.zip |
detail about 'trick' function (nil turn it off)
-rw-r--r-- | ltests.c | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: ltests.c,v 2.121 2011/07/02 15:59:17 roberto Exp roberto $ | 2 | ** $Id: ltests.c,v 2.122 2011/08/23 17:24:34 roberto Exp roberto $ |
3 | ** Internal Module for Debugging of the Lua Implementation | 3 | ** Internal Module for Debugging of the Lua Implementation |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -595,7 +595,10 @@ static int mem_query (lua_State *L) { | |||
595 | 595 | ||
596 | 596 | ||
597 | static int settrick (lua_State *L) { | 597 | static int settrick (lua_State *L) { |
598 | l_Trick = gcvalue(obj_at(L, 1)); | 598 | if (ttisnil(obj_at(L, 1))) |
599 | l_Trick = NULL; | ||
600 | else | ||
601 | l_Trick = gcvalue(obj_at(L, 1)); | ||
599 | return 0; | 602 | return 0; |
600 | } | 603 | } |
601 | 604 | ||