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

Function tpt_lua_optString

src/lua/LuaScriptInterface.cpp:858–865  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

856}
857
858String tpt_lua_optString(lua_State *L, int index, String defaultValue, bool ignoreError)
859{
860 if (lua_isnoneornil(L, index))
861 {
862 return defaultValue;
863 }
864 return tpt_lua_checkString(L, index, ignoreError);
865}
866
867int tpt_lua_loadstring(lua_State *L, const ByteString &str)
868{

Callers 11

LuaCheckboxMethod · 0.85
LuaGetErrorFunction · 0.85
CommandMethod · 0.85
LuaProgressBarMethod · 0.85
LuaButtonMethod · 0.85
flogFunction · 0.85
LuaTextboxMethod · 0.85
triggerOnTextChangedMethod · 0.85
LuaLabelMethod · 0.85
textSizeFunction · 0.85
drawTextFunction · 0.85

Calls 1

tpt_lua_checkStringFunction · 0.85

Tested by

no test coverage detected