LuaStack *LuaStack::create(void) { LuaStack *stack = new LuaStack(); stack->init(); stack->autorelease(); return stack; }
LuaStack *LuaStack::attach(lua_State *L) { LuaStack *stack = new LuaStack(); stack->initWithLuaState(L); stack->autorelease(); return stack; }
LuaStack *LuaStack::create(void) { LuaStack *stack = new (std::nothrow) LuaStack(); stack->init(); stack->autorelease(); return stack; }