issue #151 enable dlmalloc

pull/167/head
Dibyendu Majumdar 6 years ago
parent 60eccabd2b
commit be1f7e82ce

@ -1052,9 +1052,13 @@ static int panic (lua_State *L) {
LUALIB_API lua_State *luaL_newstate (void) {
void *ud = create_mspace(0, 0); /* Use Doug Lea's allocator */
#if 1
/* Use Doug Lea's allocator */
void *ud = create_mspace(0, 0);
lua_State *L = lua_newstate(ravi_alloc_f, ud);
//lua_State *L = lua_newstate(l_alloc, NULL);
#else
lua_State *L = lua_newstate(l_alloc, NULL);
#endif
if (L) lua_atpanic(L, &panic);
return L;
}

Loading…
Cancel
Save