moonbridge
changeset 264:30a04a6a45db
Added missing "do" statement in while(0) macro workaround
| author | jbe | 
|---|---|
| date | Sun Jun 04 13:43:09 2017 +0200 (2017-06-04) | 
| parents | 3a346a82031a | 
| children | 37aaca00941c | 
| files | moonbridge.c | 
   line diff
1.1 --- a/moonbridge.c Sun May 28 12:53:41 2017 +0200 1.2 +++ b/moonbridge.c Sun Jun 04 13:43:09 2017 +0200 1.3 @@ -1875,7 +1875,7 @@ 1.4 return 1; 1.5 } 1.6 1.7 -#define moonbr_listen_init_pool_forkoption(luaname, cname, defval) { \ 1.8 +#define moonbr_listen_init_pool_forkoption(luaname, cname, defval) do { \ 1.9 lua_getfield(L, 2, luaname); \ 1.10 pool->cname = lua_isnil(L, -1) ? (defval) : moonbr_lua_tonatural(L, -1); \ 1.11 } while(0)