Signed-off-by: myperworld <myperworld@126.com>
This commit is contained in:
1 parent
0986832fd1
commit
aacd052c06
3403 files changed
+597376
-12
No files matched your search
@@ -0,0 +1,22 @@
|
||||
#pragma once
|
||||
|
||||
|
||||
#include "fl/stdint.h"
|
||||
#include "fl/int.h"
|
||||
// This file must not be in the fl namespace, it must be in the global
|
||||
// namespace.
|
||||
|
||||
#if (defined(__AVR__) || !defined(__has_include)) && (!defined(FASTLED_HAS_NEW))
|
||||
#ifndef __has_include
|
||||
#define _NO_EXCEPT
|
||||
#else
|
||||
#define _NO_EXCEPT noexcept
|
||||
#endif
|
||||
inline void *operator new(fl::size, void *ptr) _NO_EXCEPT { return ptr; }
|
||||
#elif __has_include(<new>)
|
||||
#include <new>
|
||||
#elif __has_include(<new.h>)
|
||||
#include <new.h>
|
||||
#elif __has_include("new.h")
|
||||
#include "new.h"
|
||||
#endif
|
||||
Reference in new issue
Block a user