Commit c459ea31 authored by Juergen Kosel's avatar Juergen Kosel

Allow to include Heap.h into c++

Signed-off-by: 's avatarJuergen Kosel <juergen.kosel@softing.com>
parent ad500799
...@@ -59,6 +59,9 @@ typedef struct ...@@ -59,6 +59,9 @@ typedef struct
size_t max_size; /**< max size the heap has reached in bytes */ size_t max_size; /**< max size the heap has reached in bytes */
} heap_info; } heap_info;
#if defined(__cplusplus)
extern "C" {
#endif
void* mymalloc(char*, int, size_t size); void* mymalloc(char*, int, size_t size);
void* myrealloc(char*, int, void* p, size_t size); void* myrealloc(char*, int, void* p, size_t size);
...@@ -72,5 +75,8 @@ int HeapDump(FILE* file); ...@@ -72,5 +75,8 @@ int HeapDump(FILE* file);
int HeapDumpString(FILE* file, char* str); int HeapDumpString(FILE* file, char* str);
void* Heap_findItem(void* p); void* Heap_findItem(void* p);
void Heap_unlink(char* file, int line, void* p); void Heap_unlink(char* file, int line, void* p);
#ifdef __cplusplus
}
#endif
#endif #endif
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment