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