Teensy 4.1 core updated for C++20
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

21 rinda
410B

  1. #define PRINT_DEBUG_STUFF
  2. #ifdef PRINT_DEBUG_STUFF
  3. #define printf_init() printf_debug_init()
  4. // defining printf this way breaks things like Serial.printf() in C++ :(
  5. #define printf(...) printf_debug(__VA_ARGS__)
  6. #ifdef __cplusplus
  7. extern "C" {
  8. #endif
  9. void print_debug_init(void);
  10. void printf_debug(const char *format, ...);
  11. #ifdef __cplusplus
  12. }
  13. #endif
  14. #else
  15. #define printf_init()
  16. #define printf(...)
  17. #endif