[poincare] Register Static Allocation Failure if required

This commit is contained in:
Émilie Feral
2018-08-09 16:43:36 +02:00
parent 8bfbad3f97
commit 5fd415eb9e
21 changed files with 26 additions and 7 deletions

View File

@@ -5,6 +5,7 @@ namespace Poincare {
template<typename T> FloatNode<T> * FloatNode<T>::FailedAllocationStaticNode() {
static AllocationFailureExpressionNode<FloatNode<T>> failure;
TreePool::sharedPool()->registerStaticNodeIfRequired(&failure);
return &failure;
}