diff options
Diffstat (limited to 'crawl-ref/source/clua.cc')
-rw-r--r-- | crawl-ref/source/clua.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crawl-ref/source/clua.cc b/crawl-ref/source/clua.cc index 5c6a3996d0..8c7582b69e 100644 --- a/crawl-ref/source/clua.cc +++ b/crawl-ref/source/clua.cc @@ -47,7 +47,7 @@ #define BUGGY_SCRIPT_ERROR "666: Killing badly-behaved Lua script." #define CL_RESETSTACK_RETURN(ls, oldtop, retval) \ - if (true) \ + do \ {\ if (oldtop != lua_gettop(ls)) \ { \ @@ -55,7 +55,7 @@ } \ return (retval); \ } \ - else + while (false) static int clua_panic(lua_State *); static void clua_throttle_hook(lua_State *, lua_Debug *); |