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 was 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 tutorial uses
assertfrom<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/ :