Codechange: use string_view for squirrel parameter checks

This commit is contained in:
Rubidium
2025-05-04 16:59:06 +02:00
committed by rubidium42
parent 588b0de3de
commit 1f411f8a16
7 changed files with 41 additions and 45 deletions
+1 -1
View File
@@ -84,7 +84,7 @@ static const std::initializer_list<SQRegFunction> mathlib_funcs = {
_DECL_FUNC(exp,2,".n"),
#ifdef EXPORT_DEFAULT_SQUIRREL_FUNCTIONS
_DECL_FUNC(srand,2,".n"),
_DECL_FUNC(rand,1,nullptr),
_DECL_FUNC(rand,1,std::nullopt),
#endif /* EXPORT_DEFAULT_SQUIRREL_FUNCTIONS */
_DECL_FUNC(fabs,2,".n"),
_DECL_FUNC(abs,2,".n"),