[poincare] init files

This commit is contained in:
Léa Saviot
2018-08-30 11:17:56 +02:00
parent e9be5c6dbf
commit f59646ad6b
2 changed files with 21 additions and 0 deletions

View File

@@ -0,0 +1,10 @@
#ifndef POINCARE_INIT_H
#define POINCARE_INIT_H
namespace Poincare {
void init();
}
#endif

11
poincare/src/init.cpp Normal file
View File

@@ -0,0 +1,11 @@
#include <poincare/init.h>
namespace Poincare {
void init() {
// Create and register the shared static pool
static TreePool pool;
TreePool::registerPool(&pool);
}
}