The dummy constants have moved to oath_constants.h.

Add annotation macros for coverage analysis.


git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@774 185d5e19-27fe-0310-9dcf-9bff6b9f3609
This commit is contained in:
Dag-Erling Smørgrav 2014-03-09 11:51:08 +00:00
parent c5265319ff
commit 183cc6d511
1 changed files with 14 additions and 4 deletions

View File

@ -32,11 +32,21 @@
#ifndef OATH_IMPL_H_INCLUDED
#define OATH_IMPL_H_INCLUDED
#if _BullseyeCoverage
#define COVERAGE_DISABLE _Pragma("BullseyeCoverage save off")
#define COVERAGE_RESTORE _Pragma("BullseyeCoverage restore")
#else
#define COVERAGE_DISABLE
#define COVERAGE_RESTORE
#endif
/*
* Dummy key parameters
* Use at end of switch which has no default case
*/
#define OATH_DUMMY_LABEL ("oath-dummy-key")
#define OATH_DUMMY_LABELLEN (sizeof DUMMY_LABEL)
#define OATH_DUMMY_KEYLEN 80
#define COVERAGE_NO_DEFAULT_CASE \
COVERAGE_DISABLE \
default: \
(void)0; \
COVERAGE_RESTORE
#endif