Skip to content

Commit d2b2ff9

Browse files
committed
Declare main and init so the user can't "overwrite" them
1 parent 86ae860 commit d2b2ff9

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

cores/arduino/Arduino.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,10 @@ extern "C"{
5555

5656
void yield( void ) ;
5757

58+
/* system functions */
59+
int main( void );
60+
void init( void );
61+
5862
/* sketch */
5963
void setup( void ) ;
6064
void loop( void ) ;

0 commit comments

Comments
 (0)