/* * Gets an object from the Lua stack with the desired type, if it matches, otherwise * returns null. */ internal object getAsType(IntPtr luaState, int stackPos, Type paramType) { ExtractValue extractor = typeChecker.checkType(luaState, stackPos, paramType); if (extractor != null) { return(extractor(luaState, stackPos)); } return(null); }
/* * Gets an object from the Lua stack with the desired type, if it matches, otherwise * returns null. */ internal object getAsType(LuaCore.lua_State luaState, int stackPos, Type paramType) { var extractor = typeChecker.checkType(luaState, stackPos, paramType); return(!extractor.IsNull() ? extractor(luaState, stackPos) : null); }