aboutsummaryrefslogtreecommitdiff
path: root/mp/src/public/togl/linuxwin/glmdebug.h
diff options
context:
space:
mode:
Diffstat (limited to 'mp/src/public/togl/linuxwin/glmdebug.h')
-rw-r--r--mp/src/public/togl/linuxwin/glmdebug.h29
1 files changed, 25 insertions, 4 deletions
diff --git a/mp/src/public/togl/linuxwin/glmdebug.h b/mp/src/public/togl/linuxwin/glmdebug.h
index 8efba8b4..08cb6f91 100644
--- a/mp/src/public/togl/linuxwin/glmdebug.h
+++ b/mp/src/public/togl/linuxwin/glmdebug.h
@@ -1,8 +1,33 @@
//========= Copyright Valve Corporation, All rights reserved. ============//
+// TOGL CODE LICENSE
+//
+// Copyright 2011-2014 Valve Corporation
+// All Rights Reserved.
+//
+// Permission is hereby granted, free of charge, to any person obtaining a copy
+// of this software and associated documentation files (the "Software"), to deal
+// in the Software without restriction, including without limitation the rights
+// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+// copies of the Software, and to permit persons to whom the Software is
+// furnished to do so, subject to the following conditions:
+//
+// The above copyright notice and this permission notice shall be included in
+// all copies or substantial portions of the Software.
+//
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+// THE SOFTWARE.
#ifndef GLMDEBUG_H
#define GLMDEBUG_H
#include "tier0/platform.h"
+#if defined( OSX )
+#include <stdarg.h>
+#endif
// include this anywhere you need to be able to compile-out code related specifically to GLM debugging.
@@ -132,11 +157,7 @@ inline void GLMDebugger( void )
{
if (GLMDebugChannelMask() & (1<<eDebugger))
{
-#ifdef OSX
- asm {int 3 };
-#else
DebuggerBreak();
-#endif
}
if (GLMDebugChannelMask() & (1<<eGLProfiler))