Codechange: introduce and use std::string variant of sq_throwerror
This commit is contained in:
@@ -234,7 +234,7 @@ public:
|
||||
/**
|
||||
* Throw a Squirrel error that will be nicely displayed to the user.
|
||||
*/
|
||||
void ThrowError(const char *error) { sq_throwerror(this->vm, error); }
|
||||
void ThrowError(const std::string_view error) { sq_throwerror(this->vm, error); }
|
||||
|
||||
/**
|
||||
* Release a SQ object.
|
||||
|
Reference in New Issue
Block a user