Bazaar developer reference

CvLuaPlot::lIsNone(lua_State *)

Defined in
Lua/CvLuaPlot.cpp, line 500
Class
CvLuaPlot
Hook name
CivHooks::CvLuaPlot_lIsNone

Hooks

static bool BeforeCvLuaPlot_lIsNone(lua_State* L, int& result);static void AfterCvLuaPlot_lIsNone(lua_State* L, int& result);static int ReplaceCvLuaPlot_lIsNone(int (*original)(lua_State*), lua_State* L);CivRegisterBefore<CivHooks::CvLuaPlot_lIsNone>(host, &BeforeCvLuaPlot_lIsNone);CivRegisterAfter<CivHooks::CvLuaPlot_lIsNone>(host, &AfterCvLuaPlot_lIsNone);CivRegisterReplace<CivHooks::CvLuaPlot_lIsNone>(host, &ReplaceCvLuaPlot_lIsNone);

Code

499//bool isNone();500int CvLuaPlot::lIsNone(lua_State* L)501{502	const bool bDoesNotExist = (GetInstance(L, false) == NULL);503	lua_pushboolean(L, bDoesNotExist);504505	return 1;506}

Calls

Called by