summaryrefslogtreecommitdiffstats
path: root/src/common/assert.h (unfollow)
Commit message (Collapse)AuthorFilesLines
2019-04-07Permit a Null Shader in case of a bad host_ptr.Fernando Sahmkow1-0/+18
2018-11-21common/assert: Add UNIMPLEMENTED_IF and UNIMPLEMENTED_IF_MSG for conditional assertionsLioncash1-0/+3
Currently, there's no way to specify if an assertion should conditionally occur due to unimplemented behavior. This is useful when something is only partially implemented (e.g. due to ongoing RE work). In particular, this would be useful within the graphics code. The rationale behind this is it allows a dev to disable unimplemented feature assertions (which can occur in an unrelated work area), while still enabling regular assertions, which act as behavior guards for conditions or states which must not occur. Previously, the only way a dev could temporarily disable asserts, was to disable the regular assertion macros, which has the downside of also disabling, well, the regular assertions which hold more sanitizing value, as opposed to unimplemented feature assertions.
2018-11-20common/assert: Make the UNIMPLEMENTED macro properly assertLioncash1-1/+1
Currently, this was only performing a logging call, which doesn't actually invoke any assertion behavior. This is unlike UNIMPLEMENTED_MSG, which *does* assert. This makes the expected behavior uniform across both macros.
2018-07-07Port #3474 from CitrafearlessTobi1-1/+1
2018-07-03Update clang formatJames Rowe1-3/+2
2018-07-03Rename logging macro back to LOG_*James Rowe1-2/+2
2018-04-27general: Convert assertion macros over to be fmt-compatibleLioncash1-2/+3
2018-01-09fix macos buildMerryMage1-1/+1
2016-09-21Remove empty newlines in #include blocks.Emmanuel Gil Peyrot1-2/+1
This makes clang-format useful on those. Also add a bunch of forgotten transitive includes, which otherwise prevented compilation.
2016-09-18Sources: Run clang-format on everything.Emmanuel Gil Peyrot1-11/+15
2016-04-24assert: Allow UNREACHABLE_MSG to have just one argumentSam Spilsbury1-1/+1
2016-04-23assert: Add _MSG variations for UNREACHABLE and UNIMPLEMENTEDSam Spilsbury1-0/+2
2015-06-28Common: Cleanup profiler includes.Emmanuel Gil Peyrot1-1/+0
2015-05-12Common: Use the log system to print assert messagesYuri Kunde Schlesner1-7/+3
2015-05-07Clean-up includesYuri Kunde Schlesner1-0/+1
2015-02-18Asserts: Use lambdas to keep assertion code away from the main code pathYuri Kunde Schlesner1-6/+25
2015-02-11Asserts: break/crash program, fit to style guide; log.h->assert.harchshift1-0/+36
Involves making asserts use printf instead of the log functions (log functions are asynchronous and, as such, the log won't be printed in time) As such, the log type argument was removed (printf obviously can't use it, and it's made obsolete by the file and line printing) Also removed some GEKKO cruft.