2018-05-30 00:55:58 +02:00
|
|
|
#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, ...);
|
|
|
|
}
|
|
|
|
|
2019-02-22 00:41:32 +01:00
|
|
|
// #define GC_GET_HEAP_SIZE() device_heap_size(0)
|
|
|
|
#define xmalloc malloc
|
|
|
|
#define xfree free
|
|
|
|
|
2019-02-28 00:24:25 +01:00
|
|
|
#if CONFIG_ENABLED(MICROBIT_BLE_ENABLED)
|
|
|
|
#define GC_BLOCK_SIZE 256
|
|
|
|
#else
|
2019-02-22 00:41:32 +01:00
|
|
|
#define GC_BLOCK_SIZE 1000
|
2019-02-28 00:24:25 +01:00
|
|
|
#endif
|
2018-05-30 00:55:58 +02:00
|
|
|
|
|
|
|
#define DMESG NOLOG
|
|
|
|
|
|
|
|
#endif
|