mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-19 00:37:25 +01:00
23 lines
617 B
C++
23 lines
617 B
C++
#include <poincare/ghost_node.h>
|
|
#include <poincare/tree_pool.h>
|
|
|
|
namespace Poincare {
|
|
|
|
TreeNode * GhostNode::uninitializedStaticNode() const {
|
|
return UninitializedGhostNode::UninitializedGhostStaticNode();
|
|
}
|
|
|
|
GhostNode * GhostNode::FailedAllocationStaticNode() {
|
|
static AllocationFailedGhostNode failure;
|
|
TreePool::sharedPool()->registerStaticNodeIfRequired(&failure);
|
|
return &failure;
|
|
}
|
|
|
|
UninitializedGhostNode * UninitializedGhostNode::UninitializedGhostStaticNode() {
|
|
static UninitializedGhostNode exception;
|
|
TreePool::sharedPool()->registerStaticNodeIfRequired(&exception);
|
|
return &exception;
|
|
}
|
|
|
|
}
|