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

Function tpt_lua_optByteString

src/lua/LuaScriptInterface.cpp:849–856  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

847}
848
849ByteString tpt_lua_optByteString(lua_State *L, int index, ByteString defaultValue)
850{
851 if (lua_isnoneornil(L, index))
852 {
853 return defaultValue;
854 }
855 return tpt_lua_checkByteString(L, index);
856}
857
858String tpt_lua_optString(lua_State *L, int index, String defaultValue, bool ignoreError)
859{

Callers 5

clipboardPasteFunction · 0.85
loadStampFunction · 0.85
deleteStampFunction · 0.85
requestFunction · 0.85
ShutdownFunction · 0.85

Calls 1

tpt_lua_checkByteStringFunction · 0.85

Tested by

no test coverage detected