| 856 | } |
| 857 | |
| 858 | String 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 | |
| 867 | int tpt_lua_loadstring(lua_State *L, const ByteString &str) |
| 868 | { |
no test coverage detected