aboutsummaryrefslogtreecommitdiff
path: root/c/pl.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'c/pl.cpp')
-rw-r--r--c/pl.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/c/pl.cpp b/c/pl.cpp
index a40865f..fb3d4af 100644
--- a/c/pl.cpp
+++ b/c/pl.cpp
@@ -28,6 +28,16 @@ void Frame::Rewind()
PL_rewind_foreign_frame(m_f);
}
+Mark::Mark()
+{
+ PL_mark_string_buffers(&m_m);
+}
+
+Mark::~Mark()
+{
+ PL_release_string_buffers_from_mark(m_m);
+}
+
Query::Query(const module_t ctx, const predicate_t p, const term_t t0)
{
m_q = PL_open_query(ctx, PL_Q_CATCH_EXCEPTION, p, t0);