MCPcopy Create free account
hub / github.com/BigPig0/RelayLive / CheckString

Function CheckString

ThirdParty/lua/luapp/LuaAPI.hpp:411–424  ·  view source on GitHub ↗

------------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

409}
410//------------------------------------------------------------------------------
411inline Str CheckString(NativeState h,int index)
412{
413// return Str(luaL_checkstring(h,index));
414
415 #ifdef _LUAPP_CHECK_DATA_TYPE_
416 if ( lua_type(h, index)!=LUA_TSTRING )
417 {
418 lua::Log<<"error:lua::CheckString"<<lua::End;
419 return Str("none");
420 }
421 #endif
422
423 return lua_tostring(h,index);
424}
425//------------------------------------------------------------------------------
426inline void* CheckUserData(NativeState h,int index)
427{

Callers 3

thunkMethod · 0.70
CheckVarFromLuaFunction · 0.70

Calls 1

lua_typeFunction · 0.85

Tested by

no test coverage detected