Epic refactoring in progress...

This commit is contained in:
Benoit Blanchon
2014-10-27 13:34:54 +01:00
parent e0980292ef
commit 8988cb4761
19 changed files with 343 additions and 341 deletions

View File

@@ -32,13 +32,8 @@ class JsonBuffer {
JsonObject parseObject(char* json);
JsonValue parseValue(char* json);
template <typename T>
T* create() {
void* p = alloc(sizeof(T));
if (!p) return NULL;
return new (p) T();
}
virtual void* alloc(size_t size) = 0;
};
}
void* operator new(size_t size, ArduinoJson::JsonBuffer* buffer);