pxt-calliope/libs/core/pxtcore.h
Michał Moskal 28b5b293b5 Use gcPreAllocateBlock() to fix #2177, #2215 (#2216)
* Use gcPreAllocateBlock() to fix #2177, #2215
* bump pcp 6.9.4
2019-07-01 18:39:12 -07:00

28 lines
463 B
C++

#ifndef __PXTCORE_H
#define __PXTCORE_H
#include "MicroBit.h"
#include "MicroBitImage.h"
#include "ManagedString.h"
#include "ManagedType.h"
namespace pxt {
void debuglog(const char *format, ...);
}
// #define GC_GET_HEAP_SIZE() device_heap_size(0)
#define xmalloc malloc
#define xfree free
#define GC_MAX_ALLOC_SIZE 9000
#if CONFIG_ENABLED(MICROBIT_BLE_ENABLED)
#define GC_BLOCK_SIZE 256
#else
#define GC_BLOCK_SIZE 1000
#endif
#define DMESG NOLOG
#endif