Init
This commit is contained in:
34
Samples/Tests/DebugTools.cpp
Normal file
34
Samples/Tests/DebugTools.cpp
Normal file
@ -0,0 +1,34 @@
|
||||
/*
|
||||
* Copyright (c) 2014, Oculus VR, Inc.
|
||||
* All rights reserved.
|
||||
*
|
||||
* This source code is licensed under the BSD-style license found in the
|
||||
* RakNet License.txt file in the licenses directory of this source tree. An additional grant
|
||||
* of patent rights can be found in the RakNet Patents.txt 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();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user