Hide the no-op default case when not instrumenting for coverage analysis.

This commit is contained in:
Dag-Erling Smørgrav 2016-01-09 18:37:36 +01:00
parent e5b9a12a35
commit 2237a13d5b

View file

@ -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