DebugTools.cpp 741 B

12345678910111213141516171819202122232425262728293031323334
  1. /*
  2. * Copyright (c) 2014, Oculus VR, Inc.
  3. * All rights reserved.
  4. *
  5. * This source code is licensed under the BSD-style license found in the
  6. * LICENSE file in the root directory of this source tree. An additional grant
  7. * of patent rights can be found in the PATENTS file in the same directory.
  8. *
  9. */
  10. #include "DebugTools.h"
  11. DebugTools::DebugTools(void)
  12. {
  13. }
  14. DebugTools::~DebugTools(void)
  15. {
  16. }
  17. void DebugTools::ShowError(RakString errorString,bool pause, unsigned int lineNum,const char *fileName)
  18. {
  19. char pauseChar;
  20. fflush(stdin);
  21. printf("%s\nFile:%s \nLine: %i\n",errorString.C_String(),fileName,lineNum);
  22. if (pause)
  23. {
  24. printf("Press enter to continue \n");
  25. pauseChar=getchar();
  26. }
  27. }
粤ICP备19079148号