Skip to content

Commit 565b6f4

Browse files
committed
Fix error macrocc
1 parent e877513 commit 565b6f4

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

include/clasp/gctools/hardErrors.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ THE SOFTWARE.
2727
*/
2828
/* -^- */
2929

30+
#include <fmt/format.h>
31+
3032
void dbg_hook(const char* errorString);
3133

3234
namespace core {

include/clasp/gctools/smart_pointers.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ template <class T> class base_ptr {
133133

134134
template <class o_class> inline base_ptr<o_class> as_assert() const {
135135
#ifdef DEBUG_ASSERT
136-
GCTOOLS_ASSERT(TaggedCast<o_class*, Type*>::isA(this->theObject))
136+
GCTOOLS_ASSERT((TaggedCast<o_class*, Type*>::isA(this->theObject)))
137137
#endif
138138
base_ptr<o_class> ret((Tagged)this->theObject);
139139
return ret;
@@ -401,7 +401,7 @@ template <> class smart_ptr<core::T_O> {
401401

402402
template <class o_class> inline smart_ptr<o_class> as_assert() const {
403403
#ifdef DEBUG_ASSERT
404-
GCTOOLS_ASSERT(TaggedCast<o_class*, Type*>::isA(this->theObject))
404+
GCTOOLS_ASSERT((TaggedCast<o_class*, Type*>::isA(this->theObject)))
405405
#endif
406406
smart_ptr<o_class> ret((Tagged)this->theObject);
407407
return ret;
@@ -686,7 +686,7 @@ template <> class smart_ptr<core::Cons_O> {
686686
}
687687
template <class o_class> inline smart_ptr<o_class> as_assert() const {
688688
#ifdef DEBUG_ASSERT
689-
GCTOOLS_ASSERT(TaggedCast<o_class*, Type*>::isA(this->theObject))
689+
GCTOOLS_ASSERT((TaggedCast<o_class*, Type*>::isA(this->theObject)))
690690
#endif
691691
smart_ptr<o_class> ret((Tagged)this->theObject);
692692
return ret;
@@ -817,7 +817,7 @@ template <> class smart_ptr<core::List_V> {
817817
}
818818
template <class o_class> inline smart_ptr<o_class> as_assert() const {
819819
#ifdef DEBUG_ASSERT
820-
GCTOOLS_ASSERT(TaggedCast<o_class*, Type*>::isA(this->theObject))
820+
GCTOOLS_ASSERT((TaggedCast<o_class*, Type*>::isA(this->theObject)))
821821
#endif
822822
smart_ptr<o_class> ret((Tagged)this->theObject);
823823
return ret;

0 commit comments

Comments
 (0)