File tree 8 files changed +18
-9
lines changed
src/arduino.cc/builder/test
sketch_with_function_pointer
8 files changed +18
-9
lines changed Original file line number Diff line number Diff line change 2
2
#include < IRremoteInt.h>
3
3
4
4
void setup () {}
5
- void main () {}
5
+ void loop () {}
Original file line number Diff line number Diff line change 1
1
#define DEBUG 1
2
2
#define DISABLED 0
3
3
4
- typedef MyType int ;
4
+ typedef int MyType ;
5
5
6
6
#if DISABLED
7
7
#include < debug.h>
@@ -47,4 +47,4 @@ void disabledIsDefined() {
47
47
48
48
int useMyType (MyType type) {
49
49
50
- }
50
+ }
Original file line number Diff line number Diff line change 4
4
#define DEBUG 1
5
5
#define DISABLED 0
6
6
7
- typedef MyType int;
7
+ typedef int MyType ;
8
8
9
9
#if DISABLED
10
10
#include <debug.h>
@@ -62,3 +62,4 @@ void disabledIsDefined() {
62
62
int useMyType(MyType type) {
63
63
64
64
}
65
+
Original file line number Diff line number Diff line change 4
4
#define DEBUG 1
5
5
#define DISABLED 0
6
6
7
- typedef MyType int;
7
+ typedef int MyType ;
8
8
9
9
10
10
@@ -52,3 +52,4 @@ int useMyType(MyType type) {
52
52
53
53
}
54
54
55
+
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ void setup()
9
9
}
10
10
void loop ()
11
11
{
12
- long total1 = cs_13_8.read (30 );
12
+ long total1 = cs_13_8.capacitiveSensor (30 );
13
13
Serial.println (total1);
14
14
delay (100 );
15
- }
15
+ }
Original file line number Diff line number Diff line change @@ -17,7 +17,8 @@ void setup()
17
17
}
18
18
void loop()
19
19
{
20
- long total1 = cs_13_8.read (30);
20
+ long total1 = cs_13_8.capacitiveSensor (30);
21
21
Serial.println(total1);
22
22
delay(100);
23
23
}
24
+
Original file line number Diff line number Diff line change
1
+ class Task {
2
+ public:
3
+ Task (void (*aCallback)()) {};
4
+ };
5
+
Original file line number Diff line number Diff line change
1
+ #include " CallbackBug.h"
1
2
Task t1 (&t1Callback);
2
3
void t1Callback () {}
3
4
void setup () {}
4
- void loop () {}
5
+ void loop () {}
You can’t perform that action at this time.
0 commit comments