mirror of
https://github.com/cryb-to/cryb-to.git
synced 2025-01-03 18:31:11 +00:00
Hide the no-op default case when not instrumenting for coverage analysis.
This commit is contained in:
parent
e5b9a12a35
commit
2237a13d5b
1 changed files with 4 additions and 0 deletions
|
@ -43,10 +43,14 @@
|
|||
/*
|
||||
* Use at end of switch which has no default case
|
||||
*/
|
||||
#if CRYB_COVERAGE
|
||||
#define CRYB_NO_DEFAULT_CASE \
|
||||
CRYB_DISABLE_COVERAGE \
|
||||
default: \
|
||||
(void)0; \
|
||||
CRYB_RESTORE_COVERAGE
|
||||
#else
|
||||
#define CRYB_NO_DEFAULT_CASE
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Reference in a new issue