Skip to content

Commit

Permalink
pragma once to a few more header files.
Browse files Browse the repository at this point in the history
  • Loading branch information
tamlin-mike authored and Xottab-DUTY committed Aug 5, 2017
1 parent 8ffff01 commit 7a92351
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 5 deletions.
1 change: 1 addition & 0 deletions src/xrCore/vector.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#pragma once
#ifndef _vector_included
#define _vector_included

Expand Down
7 changes: 5 additions & 2 deletions src/xrCore/xrCore.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#pragma once
#ifndef xrCoreH
#define xrCoreH
#pragma once

// XXX: upgrade std hash structures
#define _SILENCE_STDEXT_HASH_DEPRECATION_WARNINGS
#ifndef DEBUG
Expand Down Expand Up @@ -53,7 +54,9 @@
#define DEBUG
#endif
#ifdef MIXED
#define DEBUG
# ifndef DEBUG
# define DEBUG
# endif
#endif

#ifndef DEBUG
Expand Down
2 changes: 0 additions & 2 deletions src/xrCore/xrCore_impexp.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
#ifdef _MSC_VER
#pragma once
#endif
#ifndef XRCORE_IMPEXP_H
#define XRCORE_IMPEXP_H
#include "Common/xr_impexp_macros.h"
Expand Down
2 changes: 1 addition & 1 deletion src/xrCore/xrDebug_macros.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#pragma once
#ifndef xrDebug_macrosH
#define xrDebug_macrosH
#pragma once

#define DEBUG_INFO {__FILE__, __LINE__, __FUNCTION__}
#define CHECK_OR_EXIT(expr, message)\
Expand Down

0 comments on commit 7a92351

Please sign in to comment.