Mitch Curtis
aa8e3e7b0f
GDScript: add an optional message parameter to assert()
...
Before this patch, assert() only took the condition to assert on:
assert(item_data)
Now, it can optionally take a string that will be printed upon failure:
assert(item_data, item_name + " has no item data in ItemDatabase")
This makes it easier to immediately see what the issue is by being
able to write informative failure messages.
Thanks to @wiped1 for sharing their patch, upon which this is based.
Closes #17082
2019-09-11 15:37:11 +02:00
..
2019-08-28 09:19:52 +02:00
2019-09-01 19:08:34 +01:00
2019-08-12 10:15:54 +02:00
2019-08-12 10:15:54 +02:00
2019-08-19 18:16:58 +02:00
2019-07-06 12:04:27 +01:00
2019-08-12 10:15:54 +02:00
2019-08-12 10:15:54 +02:00
2019-08-17 13:31:22 +02:00
2019-07-03 09:59:04 +02:00
2019-08-29 15:33:52 +02:00
2019-09-11 15:37:11 +02:00
2019-08-14 13:45:54 +02:00
2019-08-17 13:31:22 +02:00
2019-08-12 04:26:38 -05:00
2019-09-01 23:48:38 +02:00
2019-08-28 09:19:52 +02:00
2019-06-30 13:58:07 +02:00
2019-09-01 14:02:14 -04:00
2019-04-30 13:12:06 +02:00
2019-07-15 20:45:30 +02:00
2019-08-12 10:15:54 +02:00
2019-08-12 10:15:54 +02:00
2019-08-18 13:24:58 +02:00
2019-07-15 20:45:30 +02:00
2019-08-12 10:15:54 +02:00
2019-07-06 12:04:27 +01:00
2019-08-12 10:15:54 +02:00
2019-07-06 12:04:27 +01:00
2019-07-20 08:09:57 +02:00
2019-08-12 04:26:38 -05:00
2019-07-03 09:59:04 +02:00
2019-07-22 17:17:30 +02:00
2019-09-01 09:12:26 +03:00
2019-08-12 10:15:54 +02:00
2019-08-12 10:15:54 +02:00
2019-08-17 13:31:22 +02:00
2019-08-21 21:17:48 +02:00
2019-08-28 09:19:52 +02:00
2019-08-28 01:12:56 -07:00
2019-01-01 12:58:10 +01:00
2019-07-22 15:08:32 +02:00