mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-03-23 15:50:49 +01:00
Replace nodes with AllocationFailures inside the tree when needed
This commit is contained in:
@@ -2,12 +2,12 @@
|
||||
#include "allocation_failed_expression_node.h"
|
||||
|
||||
template<>
|
||||
TreeNode * ExpressionRef::failedAllocationNode() {
|
||||
TreeNode * ExpressionRef::staticFailedAllocationStaticNode() {
|
||||
static AllocationFailedExpressionRef FailureRef;
|
||||
return FailureRef.node();
|
||||
}
|
||||
|
||||
template<>
|
||||
ExpressionReference<ExpressionNode> ExpressionRef::failedAllocationRef() {
|
||||
return ExpressionReference<ExpressionNode>(failedAllocationNode());
|
||||
ExpressionReference<ExpressionNode> ExpressionRef::staticFailedAllocationStaticRef() {
|
||||
return ExpressionReference<ExpressionNode>(staticFailedAllocationStaticNode());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user