CvLuaFractal::lDestroy(lua_State *)
- Defined in
- Lua/CvLuaFractal.cpp, line 180
- Class
- CvLuaFractal
- Hook name
CivHooks::CvLuaFractal_lDestroy
Hooks
static bool BeforeCvLuaFractal_lDestroy(lua_State* L, int& result);static void AfterCvLuaFractal_lDestroy(lua_State* L, int& result);static int ReplaceCvLuaFractal_lDestroy(int (*original)(lua_State*), lua_State* L);CivRegisterBefore<CivHooks::CvLuaFractal_lDestroy>(host, &BeforeCvLuaFractal_lDestroy);CivRegisterAfter<CivHooks::CvLuaFractal_lDestroy>(host, &AfterCvLuaFractal_lDestroy);CivRegisterReplace<CivHooks::CvLuaFractal_lDestroy>(host, &ReplaceCvLuaFractal_lDestroy);
Code
180int CvLuaFractal::lDestroy(lua_State* L)181{182 luaL_checktype(L, 1, LUA_TUSERDATA);183 CvFractal* pFractal = static_cast<CvFractal*>(lua_touserdata(L, 1));184185 //explicitly call destructor since we used placement new186 pFractal->~CvFractal();187188 return 0;189}
Calls
- CvFractal::~CvFractal()
lua_touserdataluaL_checktype