debug.c 930 B

12345678910111213141516171819202122232425262728293031323334353637
  1. void wpnPrint (string s)
  2. {
  3. #ifdef WPN_DEBUG
  4. PrintToRPT("" + s); // comment/uncomment to hide/see at least important info
  5. #else
  6. //Print("" + s); // comment/uncomment to hide/see at least important info
  7. #endif
  8. }
  9. void wpnDebugPrint (string s)
  10. {
  11. #ifdef WPN_DEBUG
  12. PrintToRPT("" + s); // comment/uncomment to hide/see debug logs
  13. #else
  14. //Print("" + s); // comment/uncomment to hide/see debug logs
  15. #endif
  16. }
  17. void wpnDebugSpam (string s)
  18. {
  19. #ifdef WPN_DEBUG_SPAM
  20. PrintToRPT("" + s); // comment/uncomment to hide/see debug logs
  21. #else
  22. //Print("" + s); // comment/uncomment to hide/see debug logs
  23. #endif
  24. }
  25. void wpnDebugSpamALot (string s)
  26. {
  27. #ifdef WPN_DEBUG_SPAM_FREQ
  28. PrintToRPT("" + s); // comment/uncomment to hide/see debug logs
  29. #else
  30. //Print("" + s); // comment/uncomment to hide/see debug logs
  31. #endif
  32. }
  33. // @NOTE: to see output from FSM transitions, go to:
  34. // 4_World/Entities/HFSMBase.c
  35. // @see fsmDebugPrint @see fsmDebugSpam