PlatformIO package of the Teensy core framework compatible with GCC 10 & 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.

59 line
1.4KB

  1. /**************************************************************************
  2. *
  3. * Copyright 2008-2018 by Andrey Butok. FNET Community.
  4. *
  5. ***************************************************************************
  6. *
  7. * Licensed under the Apache License, Version 2.0 (the "License"); you may
  8. * not use this file except in compliance with the License.
  9. * You may obtain a copy of the License at
  10. *
  11. * http://www.apache.org/licenses/LICENSE-2.0
  12. *
  13. * Unless required by applicable law or agreed to in writing, software
  14. * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
  15. * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  16. * See the License for the specific language governing permissions and
  17. * limitations under the License.
  18. *
  19. ***************************************************************************
  20. *
  21. * Private. Debug definitions.
  22. *
  23. ***************************************************************************/
  24. #ifndef _FNET_DEBUG_H_
  25. #define _FNET_DEBUG_H_
  26. #if defined(__cplusplus)
  27. extern "C" {
  28. #endif
  29. #if FNET_CFG_DEBUG
  30. #ifndef FNET_DEBUG
  31. #define FNET_DEBUG(...) fnet_println(__VA_ARGS__)
  32. #endif
  33. #ifndef FNET_DEBUG_PRINTF
  34. #define FNET_DEBUG_PRINTF(...) fnet_printf(__VA_ARGS__)
  35. #endif
  36. #if FNET_CFG_DEBUG_STACK && FNET_CFG_DEBUG
  37. extern fnet_size_t fnet_dbg_stack_max;
  38. #endif
  39. #else
  40. #define FNET_DEBUG(...) do{}while(0)
  41. #define FNET_DEBUG_PRINTF(...) do{}while(0)
  42. #endif
  43. #if defined(__cplusplus)
  44. }
  45. #endif
  46. #endif