Skip to content

Commit 7a92351

Browse files
tamlin-mikeXottab-DUTY
authored andcommitted
pragma once to a few more header files.
1 parent 8ffff01 commit 7a92351

File tree

4 files changed

+7
-5
lines changed

4 files changed

+7
-5
lines changed

src/xrCore/vector.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#pragma once
12
#ifndef _vector_included
23
#define _vector_included
34

src/xrCore/xrCore.h

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1+
#pragma once
12
#ifndef xrCoreH
23
#define xrCoreH
3-
#pragma once
4+
45
// XXX: upgrade std hash structures
56
#define _SILENCE_STDEXT_HASH_DEPRECATION_WARNINGS
67
#ifndef DEBUG
@@ -53,7 +54,9 @@
5354
#define DEBUG
5455
#endif
5556
#ifdef MIXED
56-
#define DEBUG
57+
# ifndef DEBUG
58+
# define DEBUG
59+
# endif
5760
#endif
5861

5962
#ifndef DEBUG

src/xrCore/xrCore_impexp.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
#ifdef _MSC_VER
21
#pragma once
3-
#endif
42
#ifndef XRCORE_IMPEXP_H
53
#define XRCORE_IMPEXP_H
64
#include "Common/xr_impexp_macros.h"

src/xrCore/xrDebug_macros.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1+
#pragma once
12
#ifndef xrDebug_macrosH
23
#define xrDebug_macrosH
3-
#pragma once
44

55
#define DEBUG_INFO {__FILE__, __LINE__, __FUNCTION__}
66
#define CHECK_OR_EXIT(expr, message)\

0 commit comments

Comments
 (0)