aboutsummaryrefslogtreecommitdiff
path: root/lib/cbit/misc.h
diff options
context:
space:
mode:
authorcomex2015-03-01 13:20:08 -0500
committercomex2015-03-01 13:20:08 -0500
commit471eb472dbd3462b6a5ab21f85621e16c411709b (patch)
tree1e682ade28b4a49ab8894a19c5205b59d1e73cc9 /lib/cbit/misc.h
parentAdd extra argument to substitute_hook_functions and interpose_imports for use... (diff)
downloadsubstitute-471eb472dbd3462b6a5ab21f85621e16c411709b.tar.gz
add vec
Diffstat (limited to 'lib/cbit/misc.h')
-rw-r--r--lib/cbit/misc.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/cbit/misc.h b/lib/cbit/misc.h
index 52835b1..7c558ce 100644
--- a/lib/cbit/misc.h
+++ b/lib/cbit/misc.h
@@ -1,5 +1,7 @@
#pragma once
+#define UNUSED_STATIC_INLINE __attribute__((unused)) static inline
+
#define LET_LOOP__(expr, ctr) \
if (0) \
__done_##ctr: continue; \
@@ -40,5 +42,7 @@
#define LET_(expr, ctr) LET__(expr, ctr)
#define LET(expr) LET_(expr, __COUNTER__)
-#define safe_mul(a, b) ((a) * (b)) /* XXX */
+/* XXX */
+#define safe_mul(a, b) ((a) * (b))
+#define safe_add(a, b) ((a) + (b))