diff options
author | Kimplul <kimi.h.kuparinen@gmail.com> | 2025-08-17 23:36:54 +0300 |
---|---|---|
committer | Kimplul <kimi.h.kuparinen@gmail.com> | 2025-08-17 23:36:54 +0300 |
commit | 7a811406dd16e057204bed1aa15cfe33d81ccb6b (patch) | |
tree | 67437eea5c2b922cf3847f4b24b4988b0a566d36 /include | |
download | covsrv-7a811406dd16e057204bed1aa15cfe33d81ccb6b.tar.gz covsrv-7a811406dd16e057204bed1aa15cfe33d81ccb6b.zip |
initial commit
Diffstat (limited to 'include')
-rw-r--r-- | include/covsrv/covsrv.h | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/include/covsrv/covsrv.h b/include/covsrv/covsrv.h new file mode 100644 index 0000000..30dd348 --- /dev/null +++ b/include/covsrv/covsrv.h @@ -0,0 +1,23 @@ +#ifndef COVSRV_H +#define COVSRV_H + +#define COVSRV_NUM2STR2(x) #x +#define COVSRV_NUM2STR(x) COVSRV_NUM2STR2(x) +#define COVSRV_ID (__FILE__ ":" COVSRV_NUM2STR(__LINE__)) + +#if defined(COVERAGE) + +#define covsrv_die() covsrv_die2(COVSRV_ID) +int covsrv_die2(const char *id); +int covsrv_init(); +void covsrv_destroy(); + +#else + +#define covsrv_die() 0 +static inline int covsrv_init() {return 0;} +static inline void covsrv_destroy() {} + +#endif + +#endif /* COVSRV_H */ |