Files
thirdparty-ArduinoJson/include/ArduinoJson/Internals/PlacementNew.hpp
Benoit Blanchon 6e67bc442f Added comments
2014-11-06 14:27:14 +01:00

18 lines
357 B
C++

// Copyright Benoit Blanchon 2014
// MIT License
//
// Arduino JSON library
// https://github.com/bblanchon/ArduinoJson
#ifdef ARDUINO
// Declares the placement new as in <new>.
// This is required for Arduino IDE because it doesn't include the <new> header.
inline void *operator new(size_t, void *p) throw() { return p; }
#else
#include <new>
#endif