Added silent cmd args

Fixed #145
This commit is contained in:
2024-11-10 10:27:50 +11:00
parent 1608a13b43
commit 436bd3ffca
4 changed files with 102 additions and 29 deletions

View File

@@ -372,7 +372,7 @@ static void processAssert(Toy_VM* vm) {
//do the check
if (TOY_VALUE_IS_NULL(value) || Toy_checkValueIsTruthy(value) == false) {
//on a failure, print the message
Toy_stringifyValue(message, Toy_error);
Toy_stringifyValue(message, Toy_assertFailure);
}
//cleanup