diff --git a/libs/core/pxtcore.h b/libs/core/pxtcore.h index fb98e3b3..032d490b 100644 --- a/libs/core/pxtcore.h +++ b/libs/core/pxtcore.h @@ -1,9 +1,16 @@ #ifndef __PXTCORE_H #define __PXTCORE_H +#include + namespace pxt { void dmesg(const char *fmt, ...); #define DMESG pxt::dmesg } +static inline void itoa(int v, char *dst) { + + snprintf(dst, 30, "%d", v); + +} #endif diff --git a/package.json b/package.json index c7ca3dc7..0ab9fe79 100644 --- a/package.json +++ b/package.json @@ -39,7 +39,7 @@ "webfonts-generator": "^0.4.0" }, "dependencies": { - "pxt-common-packages": "0.23.45", + "pxt-common-packages": "0.23.54", "pxt-core": "3.21.7" }, "scripts": {