mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-03-19 13:50:28 +01:00
Merge Tree branch
This commit is contained in:
12
apps/tree/expression_reference.cpp
Normal file
12
apps/tree/expression_reference.cpp
Normal file
@@ -0,0 +1,12 @@
|
||||
#include "expression_reference.h"
|
||||
#include "allocation_failed_expression_node.h"
|
||||
|
||||
template<>
|
||||
TreeNode * ExpressionRef::FailedAllocationStaticNode() {
|
||||
static AllocationFailedExpressionNode FailureNode;
|
||||
if (FailureNode.identifier() >= -1) {
|
||||
int newIdentifier = TreePool::sharedPool()->registerStaticNode(&FailureNode);
|
||||
FailureNode.rename(newIdentifier);
|
||||
}
|
||||
return &FailureNode;
|
||||
}
|
||||
Reference in New Issue
Block a user