summaryrefslogtreecommitdiff
path: root/src/cstore/cstore.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/cstore/cstore.hpp')
-rw-r--r--src/cstore/cstore.hpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/cstore/cstore.hpp b/src/cstore/cstore.hpp
index e09c015..c7f179b 100644
--- a/src/cstore/cstore.hpp
+++ b/src/cstore/cstore.hpp
@@ -28,6 +28,14 @@
exit(-1); \
} while (0);
+#define ASSERT_IN_SESSION do \
+ { \
+ if (!inSession()) { \
+ exit_internal("no session\n"); \
+ } \
+ } while (0);
+
+
/* macros for saving/restoring paths.
* note: this allows "nested" save/restore invocations but NOT recursive ones.
*/