mirror of
https://github.com/platformio/platformio-core.git
synced 2025-10-16 07:45:21 +02:00
Update INO2CPP examples
This commit is contained in:
@@ -1,21 +1,38 @@
|
||||
struct MyItem {
|
||||
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 13"
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
Foo foo(&fooCallback);
|
||||
|
||||
//
|
||||
|
||||
void setup() {
|
||||
struct MyItem item1;
|
||||
struct Item item1;
|
||||
myFunction(&item1);
|
||||
|
||||
|
||||
}
|
||||
|
||||
#warning "Line number is 13"
|
||||
|
||||
void loop() {
|
||||
|
||||
}
|
||||
|
||||
void myFunction(struct MyItem *item) {
|
||||
void myFunction(struct Item *item) {
|
||||
|
||||
}
|
||||
|
||||
void fooCallback(){
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user