forked from bblanchon/ArduinoJson
Added declaration for placement new because it was not available in Arduino
This commit is contained in:
15
include/ArduinoJson/Internals/PlacementNew.hpp
Normal file
15
include/ArduinoJson/Internals/PlacementNew.hpp
Normal file
@ -0,0 +1,15 @@
|
||||
// Copyright Benoit Blanchon 2014
|
||||
// MIT License
|
||||
//
|
||||
// Arduino JSON library
|
||||
// https://github.com/bblanchon/ArduinoJson
|
||||
|
||||
#ifdef ARDUINO
|
||||
|
||||
inline void *operator new(size_t, void *p) throw() { return p; }
|
||||
|
||||
#else
|
||||
|
||||
#include <new>
|
||||
|
||||
#endif
|
Reference in New Issue
Block a user