aboutsummaryrefslogtreecommitdiff
path: root/mp/src/vgui2/vgui_controls/controls.cpp
diff options
context:
space:
mode:
authorJørgen P. Tjernø <[email protected]>2013-12-02 19:31:46 -0800
committerJørgen P. Tjernø <[email protected]>2013-12-02 19:46:31 -0800
commitf56bb35301836e56582a575a75864392a0177875 (patch)
treede61ddd39de3e7df52759711950b4c288592f0dc /mp/src/vgui2/vgui_controls/controls.cpp
parentMark some more files as text. (diff)
downloadsource-sdk-2013-f56bb35301836e56582a575a75864392a0177875.tar.xz
source-sdk-2013-f56bb35301836e56582a575a75864392a0177875.zip
Fix line endings. WHAMMY.
Diffstat (limited to 'mp/src/vgui2/vgui_controls/controls.cpp')
-rw-r--r--mp/src/vgui2/vgui_controls/controls.cpp144
1 files changed, 72 insertions, 72 deletions
diff --git a/mp/src/vgui2/vgui_controls/controls.cpp b/mp/src/vgui2/vgui_controls/controls.cpp
index 2da48c2b..edc89e49 100644
--- a/mp/src/vgui2/vgui_controls/controls.cpp
+++ b/mp/src/vgui2/vgui_controls/controls.cpp
@@ -1,72 +1,72 @@
-//========= Copyright Valve Corporation, All rights reserved. ============//
-//
-// Purpose:
-//
-// $NoKeywords: $
-//===========================================================================//
-
-#include <vgui_controls/Controls.h>
-#include <locale.h>
-
-// memdbgon must be the last include file in a .cpp file!!!
-#include "tier0/memdbgon.h"
-
-extern int g_nYou_Must_Add_Public_Vgui_Controls_Vgui_ControlsCpp_To_Your_Project;
-
-namespace vgui
-{
-
-static char g_szControlsModuleName[256];
-
-//-----------------------------------------------------------------------------
-// Purpose: Initializes the controls
-//-----------------------------------------------------------------------------
-extern "C" { extern int _heapmin(); }
-
-bool VGui_InitInterfacesList( const char *moduleName, CreateInterfaceFn *factoryList, int numFactories )
-{
- g_nYou_Must_Add_Public_Vgui_Controls_Vgui_ControlsCpp_To_Your_Project = 1;
-
- // If you hit this error, then you need to include memoverride.cpp in the project somewhere or else
- // you'll get crashes later when vgui_controls allocates KeyValues and vgui tries to delete them.
-#if !defined(NO_MALLOC_OVERRIDE) && defined( WIN32 )
- if ( _heapmin() != 1 )
- {
- Assert( false );
- Error( "Must include memoverride.cpp in your project." );
- }
-#endif
- // keep a record of this module name
- strncpy(g_szControlsModuleName, moduleName, sizeof(g_szControlsModuleName));
- g_szControlsModuleName[sizeof(g_szControlsModuleName) - 1] = 0;
-
- // initialize our locale (must be done for every vgui dll/exe)
- // "" makes it use the default locale, required to make iswprint() work correctly in different languages
- setlocale(LC_CTYPE, "");
- setlocale(LC_TIME, "");
- setlocale(LC_COLLATE, "");
- setlocale(LC_MONETARY, "");
-
- // NOTE: Vgui expects to use these interfaces which are defined in tier3.lib
- if ( !g_pVGui || !g_pVGuiInput || !g_pVGuiPanel ||
- !g_pVGuiSurface || !g_pVGuiSchemeManager || !g_pVGuiSystem )
- {
- Warning( "vgui_controls is missing a required interface!\n" );
- return false;
- }
-
- return true;
-}
-
-//-----------------------------------------------------------------------------
-// Purpose: returns the name of the module this has been compiled into
-//-----------------------------------------------------------------------------
-const char *GetControlsModuleName()
-{
- return g_szControlsModuleName;
-}
-
-} // namespace vgui
-
-
-
+//========= Copyright Valve Corporation, All rights reserved. ============//
+//
+// Purpose:
+//
+// $NoKeywords: $
+//===========================================================================//
+
+#include <vgui_controls/Controls.h>
+#include <locale.h>
+
+// memdbgon must be the last include file in a .cpp file!!!
+#include "tier0/memdbgon.h"
+
+extern int g_nYou_Must_Add_Public_Vgui_Controls_Vgui_ControlsCpp_To_Your_Project;
+
+namespace vgui
+{
+
+static char g_szControlsModuleName[256];
+
+//-----------------------------------------------------------------------------
+// Purpose: Initializes the controls
+//-----------------------------------------------------------------------------
+extern "C" { extern int _heapmin(); }
+
+bool VGui_InitInterfacesList( const char *moduleName, CreateInterfaceFn *factoryList, int numFactories )
+{
+ g_nYou_Must_Add_Public_Vgui_Controls_Vgui_ControlsCpp_To_Your_Project = 1;
+
+ // If you hit this error, then you need to include memoverride.cpp in the project somewhere or else
+ // you'll get crashes later when vgui_controls allocates KeyValues and vgui tries to delete them.
+#if !defined(NO_MALLOC_OVERRIDE) && defined( WIN32 )
+ if ( _heapmin() != 1 )
+ {
+ Assert( false );
+ Error( "Must include memoverride.cpp in your project." );
+ }
+#endif
+ // keep a record of this module name
+ strncpy(g_szControlsModuleName, moduleName, sizeof(g_szControlsModuleName));
+ g_szControlsModuleName[sizeof(g_szControlsModuleName) - 1] = 0;
+
+ // initialize our locale (must be done for every vgui dll/exe)
+ // "" makes it use the default locale, required to make iswprint() work correctly in different languages
+ setlocale(LC_CTYPE, "");
+ setlocale(LC_TIME, "");
+ setlocale(LC_COLLATE, "");
+ setlocale(LC_MONETARY, "");
+
+ // NOTE: Vgui expects to use these interfaces which are defined in tier3.lib
+ if ( !g_pVGui || !g_pVGuiInput || !g_pVGuiPanel ||
+ !g_pVGuiSurface || !g_pVGuiSchemeManager || !g_pVGuiSystem )
+ {
+ Warning( "vgui_controls is missing a required interface!\n" );
+ return false;
+ }
+
+ return true;
+}
+
+//-----------------------------------------------------------------------------
+// Purpose: returns the name of the module this has been compiled into
+//-----------------------------------------------------------------------------
+const char *GetControlsModuleName()
+{
+ return g_szControlsModuleName;
+}
+
+} // namespace vgui
+
+
+