summaryrefslogtreecommitdiff
path: root/include/avoid_ub.h
diff options
context:
space:
mode:
authorfig02 <fig02srl@gmail.com>2025-04-25 21:12:35 -0400
committerGitHub <noreply@github.com>2025-04-25 21:12:35 -0400
commit25b2fa4bca1f1d2d155db2610191af1075e813b3 (patch)
tree9c7c4565b76ffbbb7c4ef2dff806e7691b18c508 /include/avoid_ub.h
parentd4528a0541603ca126bc9c734b9c56bb094211cf (diff)
macros.h 3/5: Split various macros (#2512)
* split out various macros * fix * fix2 * fix dw * libc path * fix macro * does this fix bss * fix bss
Diffstat (limited to 'include/avoid_ub.h')
-rw-r--r--include/avoid_ub.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/include/avoid_ub.h b/include/avoid_ub.h
new file mode 100644
index 000000000..4706f50ec
--- /dev/null
+++ b/include/avoid_ub.h
@@ -0,0 +1,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