Teensy 4.1 core updated for C++20
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

21 satır
400B

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