pxt-calliope/libs/core/platform.h
2018-09-10 10:11:41 -07:00

14 lines
335 B
C

// helpful define to handle C++ differences in package
#define PXT_MICROBIT_TAGGED_INT 1
// cross version compatible way of access data field
#ifndef PXT_BUFFER_DATA
#define PXT_BUFFER_DATA(buffer) buffer->data
#endif
#ifndef PXT_CREATE_BUFFER
#define PXT_CREATE_BUFFER(data, len) pxt::mkBuffer(data, len)
#endif
#define PXT_POWI 1