mirror of
https://github.com/esp8266/Arduino.git
synced 2025-06-22 08:22:04 +03:00
Fix error when umm_malloc.h is included from sketch (#1652)
This commit is contained in:
@ -12,6 +12,10 @@
|
||||
|
||||
#include "umm_malloc_cfg.h" /* user-dependent */
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
typedef struct UMM_HEAP_INFO_t {
|
||||
unsigned short int totalEntries;
|
||||
unsigned short int usedEntries;
|
||||
@ -38,6 +42,9 @@ void umm_free( void *ptr );
|
||||
|
||||
size_t umm_free_heap_size( void );
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
/* ------------------------------------------------------------------------ */
|
||||
|
||||
|
@ -7,7 +7,7 @@
|
||||
|
||||
#include <debug.h>
|
||||
#ifdef __cplusplus
|
||||
#extern "C" {
|
||||
extern "C" {
|
||||
#endif
|
||||
#include "c_types.h"
|
||||
#ifdef __cplusplus
|
||||
|
3
tests/.gitignore
vendored
Normal file
3
tests/.gitignore
vendored
Normal file
@ -0,0 +1,3 @@
|
||||
hardware
|
||||
tmp
|
||||
.env
|
13
tests/test_umm_malloc/test_umm_malloc.ino
Normal file
13
tests/test_umm_malloc/test_umm_malloc.ino
Normal file
@ -0,0 +1,13 @@
|
||||
// test that we can include umm_malloc.h from sketch (#1652)
|
||||
#include <umm_malloc/umm_malloc.h>
|
||||
|
||||
|
||||
void setup() {
|
||||
Serial.begin(115200);
|
||||
delay(1000);
|
||||
umm_info(NULL, 1);
|
||||
}
|
||||
|
||||
void loop() {
|
||||
|
||||
}
|
Reference in New Issue
Block a user