mirror of
https://github.com/IoTManagerProject/IoTManager.git
synced 2026-03-26 22:22:16 +03:00
first
This commit is contained in:
14
lib/ArduinoStreamUtils/extras/test/FailingAllocator.hpp
Normal file
14
lib/ArduinoStreamUtils/extras/test/FailingAllocator.hpp
Normal file
@@ -0,0 +1,14 @@
|
||||
// StreamUtils - github.com/bblanchon/ArduinoStreamUtils
|
||||
// Copyright Benoit Blanchon 2019-2021
|
||||
// MIT License
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <stdlib.h> // size_t
|
||||
|
||||
struct FailingAllocator {
|
||||
void* allocate(size_t) {
|
||||
return nullptr;
|
||||
}
|
||||
void deallocate(void*) {}
|
||||
};
|
||||
Reference in New Issue
Block a user