| 12345678910111213141516171819202122232425262728293031323334 |
- /*
- * Copyright (c) 2014, Oculus VR, Inc.
- * All rights reserved.
- *
- * This source code is licensed under the BSD-style license found in the
- * LICENSE file in the root directory of this source tree. An additional grant
- * of patent rights can be found in the PATENTS file in the same directory.
- *
- */
- #include "DebugTools.h"
- DebugTools::DebugTools(void)
- {
- }
- DebugTools::~DebugTools(void)
- {
- }
- void DebugTools::ShowError(RakString errorString,bool pause, unsigned int lineNum,const char *fileName)
- {
- char pauseChar;
- fflush(stdin);
- printf("%s\nFile:%s \nLine: %i\n",errorString.C_String(),fileName,lineNum);
- if (pause)
- {
- printf("Press enter to continue \n");
- pauseChar=getchar();
- }
- }
|