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