Skip to content

Commit

Permalink
Merge pull request #226 from luvit/fix-assert-functional
Browse files Browse the repository at this point in the history
luvit_init: remove function call from assert()
  • Loading branch information
philips committed May 24, 2012
2 parents 95c2503 + 153fefa commit 6899bd9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/luvit_init.c
Expand Up @@ -245,7 +245,8 @@ int luvit_init(lua_State *L, uv_loop_t* loop, int argc, char *argv[])
#endif

/* Hold a reference to the main thread in the registry */
assert(lua_pushthread(L) == 1);
rc = lua_pushthread(L);
assert(rc == 1);
lua_setfield(L, LUA_REGISTRYINDEX, "main_thread");

/* Store the loop within the registry */
Expand Down

0 comments on commit 6899bd9

Please sign in to comment.