mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-03-21 23:00:45 +01:00
[poincare] Ghost nodes
This commit is contained in:
@@ -1,9 +1,16 @@
|
||||
#include <poincare/expression_node.h>
|
||||
#include <poincare/undefined.h>
|
||||
#include <poincare/ghost_expression_node.h>
|
||||
#include <poincare/allocation_failed_expression_node.h>
|
||||
|
||||
namespace Poincare {
|
||||
|
||||
TreeNode * ExpressionNode::GhostStaticNode() {
|
||||
static GhostExpressionNode GhostNode;
|
||||
TreePool::sharedPool()->registerStaticNodeIfRequired(&GhostNode);
|
||||
return &GhostNode;
|
||||
}
|
||||
|
||||
TreeNode * ExpressionNode::FailedAllocationStaticNode() {
|
||||
static AllocationFailedExpressionNode FailureNode;
|
||||
TreePool::sharedPool()->registerStaticNodeIfRequired(&FailureNode);
|
||||
|
||||
Reference in New Issue
Block a user