Browse Source

don't build / link-in a main() by default

allow lib users to implement main() by only compiling the default main()
if TEENSY_CORE_MAIN is defined
main
John Robinson 3 years ago
parent
commit
bb50cbc3c1
No known key found for this signature in database
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      src/core/main.cpp

+ 2
- 1
src/core/main.cpp View File

* SOFTWARE. * SOFTWARE.
*/ */


#ifdef TEENSY_CORE_MAIN
#include <core/Arduino.h> #include <core/Arduino.h>


extern "C" int main(void) extern "C" int main(void)
} }
#endif #endif
} }
#endif /* TEENSY_CORE_MAIN */

Loading…
Cancel
Save