Files
Upsilon/poincare/test/tree/pair_node.cpp
Léa Saviot 423dfa0654 [poincare] AllocationFail and Uninitialized inherit from Exception
Implemented for expressions, layouts, and evaluations
2018-08-14 14:22:29 +02:00

12 lines
244 B
C++

#include "pair_node.h"
namespace Poincare {
PairNode * PairNode::FailedAllocationStaticNode() {
static AllocationFailurePairNode failureNode;
TreePool::sharedPool()->registerStaticNodeIfRequired(&failureNode);
return &failureNode;
}
}