diff options
author | dshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573> | 2007-10-25 16:02:13 +0000 |
---|---|---|
committer | dshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573> | 2007-10-25 16:02:13 +0000 |
commit | b3a7bf246c898c343cd6633fddc9b7b5fcc6c4ff (patch) | |
tree | 4bfd08239852dbc3b2afd6fada7699880c6a3ce7 /crawl-ref/source/clua.cc | |
parent | 095abbe1e7caa80d4ad287a7f2d49837bbc3f141 (diff) | |
download | crawl-ref-b3a7bf246c898c343cd6633fddc9b7b5fcc6c4ff.tar.gz crawl-ref-b3a7bf246c898c343cd6633fddc9b7b5fcc6c4ff.zip |
Use a safer macro for clua ret (doy).
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@2572 c06c8d41-db1a-0410-9941-cceddc491573
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 *); |