-
Notifications
You must be signed in to change notification settings - Fork 71
Enabling or disabling runtime assertions
Roman edited this page Oct 12, 2020
·
1 revision
Fastor by default performs runtime checks (such as bounds-checking, shape-checking) under debug (when DEBUG
is defined) and by default turns off runtime checks under release. Hence, it is always a good practice to first check the validity of your code under debug before deploying the final release version.
To enable bounds, shape or any kind of runtime checks unconditionally, you can issue the compiler flag
-DFASTOR_ENABLE_RUNTIME_CHECKS=1
To disable bounds, shape or any kind of runtime checks unconditionally, you can issue the compiler flag
-DFASTOR_ENABLE_RUNTIME_CHECKS=0