added PXT_CREATE_BUFFER macro

This commit is contained in:
Peli de Halleux 2018-06-04 15:12:59 -07:00
parent 56252de874
commit 3b27c74084

View File

@ -15,6 +15,10 @@
#define PXT_BUFFER_DATA(buffer) buffer->data
#endif
#ifndef PXT_CREATE_BUFFER
#define PXT_CREATE_BUFFER(data, len) pxt::mkBuffer(data, len)
#endif
// needed for gcc6; not sure why
#undef min
#undef max