| 847 | } |
| 848 | |
| 849 | ByteString 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 | |
| 858 | String tpt_lua_optString(lua_State *L, int index, String defaultValue, bool ignoreError) |
| 859 | { |
no test coverage detected