diff --git a/arkoala/framework/native/src/tree.h b/arkoala/framework/native/src/tree.h index 8a180b66a0129a9022e27c92cd49ba4346d789ed..42160f331d77eacd5aac09d6b49470cafe63feae 100644 --- a/arkoala/framework/native/src/tree.h +++ b/arkoala/framework/native/src/tree.h @@ -22,6 +22,8 @@ #include #include +#include "interop-types.h" + using std::string; const int UndefinedDimensionUnit = -1; @@ -160,7 +162,7 @@ struct TreeNode { auto it = std::find(_children.begin(), _children.end(), sibling); if (it == _children.end()) { fprintf(stderr, "insertChildAfter: sibling node %p not found among children\n", sibling); - throw "Error"; + INTEROP_FATAL("Error"); } auto next = std::next(it); _children.insert(next, node); @@ -183,7 +185,7 @@ struct TreeNode { auto it = std::find(_children.begin(), _children.end(), sibling); if (it == _children.end()) { fprintf(stderr, "insertChildBefore: sibling node %p not found among children\n", sibling); - throw "Error"; + INTEROP_FATAL("Error"); } _children.insert(it, node); node->setParent(this);