You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jul 29, 2021. It is now read-only.
Therefore, this macro is designed to capture programming errors, not user or run-time errors, since it is generally disabled after a program exits its debugging phase.
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
The tutorial uses
assert
from<assert.h>
for real runtime errors.Many
VK_ERROR_*
are "real" runtime errors, and not logical errors. Therefore it is not valid to useassert
, which only executes in the debug build.Things like OOM errors need to be caught in the release build too in order for the app to handle them graciously and not enter undefined behavior.
http://www.cplusplus.com/reference/cassert/assert/ :
The text was updated successfully, but these errors were encountered: