mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-19 00:37:25 +01:00
13 lines
393 B
C++
13 lines
393 B
C++
#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;
|
|
}
|