diff options
author | Mitch Curtis <mitch.curtis@qt.io> | 2019-08-06 13:28:22 +0200 |
---|---|---|
committer | Mitch Curtis <mitch.curtis@qt.io> | 2019-09-11 15:37:11 +0200 |
commit | aa8e3e7b0fcb02c641b10e9748e3d9406c300884 (patch) | |
tree | 8942db79bf2c6fe3088087f6c7754b63695f6f79 /modules/mbedtls/stream_peer_mbedtls.h | |
parent | 750f8d4926edb14269d9f6a117c5a9fd4765373a (diff) |
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
Diffstat (limited to 'modules/mbedtls/stream_peer_mbedtls.h')
0 files changed, 0 insertions, 0 deletions