debug.c 569 B

1234567891011121314151617181920212223242526272829303132
  1. void syncDebugPrint (string s)
  2. {
  3. #ifdef LOG_TO_RPT
  4. PrintToRPT("" + s); // comment/uncomment to hide/see debug logs
  5. #endif
  6. #ifdef LOG_TO_SCRIPT
  7. Print(string.Format("%1", s));
  8. #endif
  9. }
  10. void actionDebugPrint (string s)
  11. {
  12. #ifdef LOG_TO_RPT
  13. PrintToRPT("" + s); // comment/uncomment to hide/see debug logs
  14. #endif
  15. #ifdef LOG_TO_SCRIPT
  16. Print(string.Format("%1", s));
  17. #endif
  18. }
  19. void inventoryDebugPrint (string s)
  20. {
  21. #ifdef LOG_TO_RPT
  22. PrintToRPT("" + s); // comment/uncomment to hide/see debug logs
  23. #endif
  24. #ifdef LOG_TO_SCRIPT
  25. Print(string.Format("%1", s));
  26. #endif
  27. }