MCPcopy Create free account
hub / github.com/The-Powder-Toy/The-Powder-Toy / tpt_lua_equalsString

Function tpt_lua_equalsString

src/lua/LuaScriptInterface.cpp:872–875  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

870}
871
872bool tpt_lua_equalsString(lua_State *L, int index, const char *data, size_t size)
873{
874 return lua_isstring(L, index) && lua_objlen(L, index) == size && !memcmp(lua_tostring(L, index), data, size);
875}
876
877int tpt_lua_pcall(lua_State *L, int numArgs, int numResults, int errorFunc, EventTraits newEventTraits)
878{

Callers 1

tpt_lua_equalsLiteralFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected