FastLED 3.9.12
Loading...
Searching...
No Matches
inplacenew.h
1#pragma once
2
3// This file must not be in the fl namespace, it must be in the global namespace.
4
5#if defined(__AVR__) || !defined(__has_include)
6#ifndef __has_include
7#define _NO_EXCEPT
8#else
9#define _NO_EXCEPT noexcept
10#endif
11inline void* operator new(size_t, void* ptr) _NO_EXCEPT {
12 return ptr;
13}
14#elif __has_include(<new>)
15#include <new>
16#elif __has_include(<new.h>)
17#include <new.h>
18#elif __has_include("new.h")
19#include "new.h"
20#endif
21