Files
platformio-core/tests/ino2cpp/basic/basic.ino
2018-01-28 00:28:21 +02:00

53 lines
582 B
C++

#define SQR(a) \
( a * a )
typedef struct Item item;
struct Item {
byte foo[50];
int bar;
void (*noob)(item*);
};
// test callback
class Foo {
public:
Foo(void (*function)()) {
#warning "Line number is 16"
}
bool childFunc() {
}
};
Foo foo(&fooCallback);
//
template<class T> T Add(T n1, T n2) {
return n1 + n2;
}
void setup() {
struct Item item1;
myFunction(&item1);
}
void loop() {
}
void myFunction(struct Item *item) {
}
#warning "Line number is 46"
void fooCallback(){
}
// юнікод