Skip to content

Commit 2f6f61f

Browse files
committed
Remove include guards from Server/Core
1 parent 92a12e0 commit 2f6f61f

File tree

8 files changed

+8
-32
lines changed

8 files changed

+8
-32
lines changed

Server/core/CCrashHandler.h

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,7 @@
99
*
1010
*****************************************************************************/
1111

12-
#ifndef __CCRASHHANDLER_H
13-
#define __CCRASHHANDLER_H
12+
#pragma once
1413

1514
#include "CCrashHandlerAPI.h"
1615

@@ -39,5 +38,3 @@ class CCrashHandler
3938

4039
#endif
4140
};
42-
43-
#endif

Server/core/CCrashHandlerAPI.h

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,7 @@
1717
Copyright (c) 1997-2000 John Robbins -- All rights reserved.
1818
----------------------------------------------------------------------*/
1919

20-
#ifndef _CRASHHANDLER_H
21-
#define _CRASHHANDLER_H
20+
#pragma once
2221

2322
#ifdef WIN32
2423

@@ -245,5 +244,3 @@ RETURNS :
245244
#endif //__cplusplus
246245

247246
#endif
248-
249-
#endif // _CRASHHANDLER_H

Server/core/CDynamicLibrary.h

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,7 @@
99
*
1010
*****************************************************************************/
1111

12-
#ifndef __CDYNAMICLIBRARY_H
13-
#define __CDYNAMICLIBRARY_H
12+
#pragma once
1413

1514
#ifdef WIN32
1615
#include <windows.h>
@@ -38,5 +37,3 @@ class CDynamicLibrary
3837
void* m_hModule;
3938
#endif
4039
};
41-
42-
#endif

Server/core/CExceptionInformation_Impl.h

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,7 @@
99
*
1010
*****************************************************************************/
1111

12-
#ifndef __CEXCEPTIONINFORMATION_IMPL_H
13-
#define __CEXCEPTIONINFORMATION_IMPL_H
12+
#pragma once
1413

1514
#include <core/CExceptionInformation.h>
1615
#include <windows.h>
@@ -70,5 +69,3 @@ class CExceptionInformation_Impl : public CExceptionInformation
7069
unsigned long m_ulSS;
7170
unsigned long m_ulEFlags;
7271
};
73-
74-
#endif

Server/core/CModManagerImpl.h

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,7 @@
1111

1212
class CModManagerImpl;
1313

14-
#ifndef __CMODMANAGERIMPL_H
15-
#define __CMODMANAGERIMPL_H
14+
#pragma once
1615

1716
#include <core/CModManager.h>
1817
#include <core/CServerBase.h>
@@ -61,5 +60,3 @@ class CModManagerImpl : public CModManager
6160
SString m_strServerPath; // Root path
6261
SString m_strModPath; // root/mods/deathmatch
6362
};
64-
65-
#endif

Server/core/CServerImpl.h

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,7 @@
1111

1212
class CServerImpl;
1313

14-
#ifndef __CSERVERIMPL_H
15-
#define __CSERVERIMPL_H
14+
#pragma once
1615

1716
#include "MTAPlatform.h"
1817
#include <string>
@@ -111,5 +110,3 @@ class CServerImpl : public CServerInterface
111110
CThreadCommandQueue* m_pThreadCommandQueue;
112111
#endif
113112
};
114-
115-
#endif

Server/core/CThreadCommandQueue.h

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,7 @@
99
*
1010
*****************************************************************************/
1111

12-
#ifndef __CTHREADCOMMANDQUEUE_H
13-
#define __CTHREADCOMMANDQUEUE_H
12+
#pragma once
1413

1514
#ifdef WIN32
1615

@@ -29,5 +28,3 @@ class CThreadCommandQueue
2928
};
3029

3130
#endif
32-
33-
#endif

Server/core/ErrorCodes.h

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,10 @@
99
*
1010
*****************************************************************************/
1111

12-
#ifndef __ERRORCODES_H
13-
#define __ERRORCODES_H
12+
#pragma once
1413

1514
#define ERROR_NO_ERROR 0
1615
#define ERROR_NO_NETWORK_LIBRARY 1
1716
#define ERROR_NETWORK_LIBRARY_FAILED 2
1817
#define ERROR_LOADING_MOD 3
1918
#define ERROR_OTHER 4
20-
21-
#endif

0 commit comments

Comments
 (0)