summaryrefslogtreecommitdiffstats
path: root/lib.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib.h')
-rw-r--r--lib.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib.h b/lib.h
index fd05954f..85f0b6e2 100644
--- a/lib.h
+++ b/lib.h
@@ -954,3 +954,11 @@ loc list_collect_append(loc pptail, val obj);
#define negone num_fast(-1)
#define maxint num_fast(NUM_MAX)
#define minint num_fast(NUM_MIN)
+
+#ifdef __cplusplus
+#define static_forward(decl) namespace { extern decl; }
+#define static_def(def) namespace { def; }
+#else
+#define static_forward(decl) static decl;
+#define static_def(def) static def;
+#endif