From 473256132d6259492e33055979086d61862ff4f3 Mon Sep 17 00:00:00 2001 From: Christoph Jabs Date: Thu, 11 Jul 2024 15:52:35 +0300 Subject: [PATCH] extend C api --- src/cadical.hpp | 2 ++ src/ccadical.cpp | 2 ++ src/ccadical.h | 2 ++ src/solver.cpp | 2 ++ 4 files changed, 8 insertions(+) diff --git a/src/cadical.hpp b/src/cadical.hpp index a803292..2301c40 100644 --- a/src/cadical.hpp +++ b/src/cadical.hpp @@ -898,6 +898,8 @@ public: // static void build (FILE *file, const char *prefix = "c "); +#include "cadical_extension.hpp" + private: //==== start of state ==================================================== diff --git a/src/ccadical.cpp b/src/ccadical.cpp index 88ab164..8186054 100644 --- a/src/ccadical.cpp +++ b/src/ccadical.cpp @@ -186,3 +186,5 @@ void ccadical_conclude (CCaDiCaL *ptr) { ((Wrapper *) ptr)->solver->conclude (); } } + +#include "ccadical_extension.cpp" diff --git a/src/ccadical.h b/src/ccadical.h index 6d1b3ff..a8f1b48 100644 --- a/src/ccadical.h +++ b/src/ccadical.h @@ -60,6 +60,8 @@ int ccadical_simplify (CCaDiCaL *); #define ccadical_sat ccadical_solve #define ccadical_deref ccadical_val +#include "ccadical_extension.h" + /*------------------------------------------------------------------------*/ #ifdef __cplusplus } diff --git a/src/solver.cpp b/src/solver.cpp index a2505ee..54ba611 100644 --- a/src/solver.cpp +++ b/src/solver.cpp @@ -1629,3 +1629,5 @@ void Solver::error (const char *fmt, ...) { } } // namespace CaDiCaL + +#include "solver_extension.cpp" -- 2.45.2