Pull common files from pxt-common-packages (#1165)
This commit is contained in:
13
libs/core/platform.h
Normal file
13
libs/core/platform.h
Normal file
@ -0,0 +1,13 @@
|
||||
// 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
|
Reference in New Issue
Block a user