3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-05-04 22:35:45 +00:00

fix build issue for debug mode

Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
Nikolaj Bjorner 2019-06-20 17:20:52 +02:00
parent 1827f98851
commit b1893f2a58
6 changed files with 40 additions and 8 deletions

View file

@ -482,6 +482,7 @@ protected:
void * m_mark2_owner;
#endif
#if 1
void inc_ref() {
SASSERT(m_ref_count < UINT_MAX);
m_ref_count ++;
@ -491,6 +492,12 @@ protected:
SASSERT(m_ref_count > 0);
m_ref_count --;
}
#else
void inc_ref();
void dec_ref();
#endif
ast(ast_kind k):m_id(UINT_MAX), m_kind(k), m_mark1(false), m_mark2(false), m_mark_shared_occs(false), m_ref_count(0) {
DEBUG_CODE({