Skip to content

Commit 2c91765

Browse files
committed
Improve library, stripped noone check
I had to strip the noone check as noone and -4 are the same during runtime, as such they can not be reliably exception handled. A warning will now be given instead.
1 parent 5b26ef1 commit 2c91765

27 files changed

+518
-225
lines changed

gml_assert.yyp

Lines changed: 69 additions & 64 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

objects/GML_MIN_ASSERT/Create_0.gml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,15 @@ AssertGreaterThan("24 is more than 12", 24, 12);
2121
AssertSmallerThan("1 is less than 6", 1, 6);
2222
AssertPositive("1 is a positive number", 1);
2323
AssertNegative("-1 is a negative number", -1);
24-
25-
24+
AssertNegative("-4 is a valid assertion", -4);
25+
AssertNegative("undefined is not a valid assertion", undefined);
26+
AssertNegative("noone is -4 during runtime", noone);
27+
AssertPositive("-4 is positive", -4);
2628

2729

2830

2931
//===========================
30-
//ADD YOUR UNIT TESTS HERE:
32+
//ADD YOUR UNIT TESTS HERE OR IN A CUSTOM OBJECT, ALTERNATIVELY USE A "WITH GML_MIN_ASSERT" STATEMENT:
3133
//===========================
3234

3335

objects/GML_MIN_ASSERT/GML_MIN_ASSERT.yy

Lines changed: 36 additions & 35 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

options/android/options_android.yy

Lines changed: 76 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

options/html5/options_html5.yy

Lines changed: 34 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)