Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
New macros: * OSL_ASSERT / OSL_ASSERT_MSG -- always test, always print error if the test fails, abort only in debug build. * OSL_DASSERT / OSL_DASSERT_MSG -- debug mode only test, print, abort. Does nothing for release build. Eschew the old OIIO macros ASSERT/DASSERT, since it is perferable to not purposely abort when in release mode. Ported over from OIIO copies of a few other related macros. This patch just adds definitions, we will change the existing macros in subsequent PRs.
- Loading branch information
Showing
1 changed file
with
59 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters