2017-06-29 15:47:26 +01:00
|
|
|
#ifndef __PXTCORE_H
|
|
|
|
#define __PXTCORE_H
|
|
|
|
|
2018-09-18 16:31:40 -07:00
|
|
|
#include <stdio.h>
|
|
|
|
|
2017-07-05 17:53:22 +01:00
|
|
|
namespace pxt {
|
2017-07-01 12:43:10 +02:00
|
|
|
void dmesg(const char *fmt, ...);
|
2017-07-10 11:42:30 +01:00
|
|
|
#define DMESG pxt::dmesg
|
2017-07-05 17:53:22 +01:00
|
|
|
}
|
2017-06-29 15:47:26 +01:00
|
|
|
|
2018-09-18 16:31:40 -07:00
|
|
|
static inline void itoa(int v, char *dst) {
|
|
|
|
|
|
|
|
snprintf(dst, 30, "%d", v);
|
|
|
|
|
|
|
|
}
|
2017-06-29 15:47:26 +01:00
|
|
|
#endif
|