summaryrefslogtreecommitdiff
path: root/include/avoid_ub.h
blob: 4706f50ecfd32c8bd4f6fa7d969b060f36752e57 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#ifndef AVOID_UB_H
#define AVOID_UB_H

/**
 * This macro is used when the return type of a function is incorrect
 */
#ifndef AVOID_UB
#define BAD_RETURN(type) type
#else
#define BAD_RETURN(type) void
#endif

#endif