Convert to pragma once

This commit is contained in:
Jack Andersen 2018-10-06 17:39:40 -10:00
parent 11cd08a30a
commit 20603da60d
28 changed files with 28 additions and 84 deletions

View File

@ -1,5 +1,4 @@
#ifndef CAABOX_HPP #pragma once
#define CAABOX_HPP
#include "zeus/CVector3f.hpp" #include "zeus/CVector3f.hpp"
#include "zeus/CTransform.hpp" #include "zeus/CTransform.hpp"
@ -416,4 +415,3 @@ inline bool operator!=(const CAABox& left, const CAABox& right)
} }
} }
#endif // CAABOX_HPP

View File

@ -1,5 +1,4 @@
#ifndef CAXISANGLE_H #pragma once
#define CAXISANGLE_H
#include "Global.hpp" #include "Global.hpp"
#include "zeus/CVector3f.hpp" #include "zeus/CVector3f.hpp"
@ -24,4 +23,3 @@ struct alignas(16) CAxisAngle : CVector3f
}; };
} }
#endif // CAXISANGLE_H

View File

@ -1,5 +1,4 @@
#ifndef CCOLOR_HPP #pragma once
#define CCOLOR_HPP
#include "Global.hpp" #include "Global.hpp"
#include "zeus/Math.hpp" #include "zeus/Math.hpp"
@ -428,4 +427,3 @@ static inline CColor operator/(float lhs, const CColor& rhs)
#endif #endif
} }
} }
#endif // CCOLOR_HPP

View File

@ -1,5 +1,4 @@
#ifndef CEULERANGES_HPP #pragma once
#define CEULERANGES_HPP
#include "zeus/CVector3f.hpp" #include "zeus/CVector3f.hpp"
@ -17,4 +16,3 @@ public:
} }
#endif // CEULERANGES_HPP

View File

@ -1,5 +1,4 @@
#ifndef CFRUSTUM_HPP #pragma once
#define CFRUSTUM_HPP
#include "zeus/CPlane.hpp" #include "zeus/CPlane.hpp"
#include "zeus/CAABox.hpp" #include "zeus/CAABox.hpp"
@ -21,4 +20,3 @@ public:
bool pointFrustumTest(const CVector3f& point) const; bool pointFrustumTest(const CVector3f& point) const;
}; };
} }
#endif // CFRUSTUM_HPP

View File

@ -1,5 +1,4 @@
#ifndef CLINE_HPP #pragma once
#define CLINE_HPP
#include "Global.hpp" #include "Global.hpp"
#include "zeus/CVector3f.hpp" #include "zeus/CVector3f.hpp"
@ -15,4 +14,3 @@ public:
}; };
} }
#endif

View File

@ -1,5 +1,4 @@
#ifndef CLINESEG_HPP #pragma once
#define CLINESEG_HPP
#include "Global.hpp" #include "Global.hpp"
#include "zeus/CVector3f.hpp" #include "zeus/CVector3f.hpp"
@ -24,4 +23,3 @@ public:
}; };
} }
#endif

View File

@ -1,5 +1,4 @@
#ifndef CMRAY_HPP #pragma once
#define CMRAY_HPP
#include "zeus/CVector3f.hpp" #include "zeus/CVector3f.hpp"
#include "zeus/CTransform.hpp" #include "zeus/CTransform.hpp"
#include "zeus/Math.hpp" #include "zeus/Math.hpp"
@ -37,4 +36,3 @@ struct CMRay
}; };
} }
#endif

View File

@ -1,5 +1,4 @@
#ifndef CMATRIX3F_HPP #pragma once
#define CMATRIX3F_HPP
#include "Global.hpp" #include "Global.hpp"
#include "zeus/CVector3f.hpp" #include "zeus/CVector3f.hpp"
@ -258,4 +257,3 @@ static inline CMatrix3f operator*(const CMatrix3f& lhs, const CMatrix3f& rhs)
} }
} }
#endif // CMATRIX3F_HPP

View File

@ -1,5 +1,4 @@
#ifndef CMATRIX4F #pragma once
#define CMATRIX4F
#include "zeus/CMatrix3f.hpp" #include "zeus/CMatrix3f.hpp"
#include "zeus/CVector4f.hpp" #include "zeus/CVector4f.hpp"
#include "zeus/CVector3f.hpp" #include "zeus/CVector3f.hpp"
@ -175,4 +174,3 @@ static inline CMatrix4f operator*(const CMatrix4f& lhs, const CMatrix4f& rhs)
} }
} }
#endif // CMATRIX4F

View File

@ -1,5 +1,4 @@
#ifndef COBBOX_HPP #pragma once
#define COBBOX_HPP
#include "zeus/CTransform.hpp" #include "zeus/CTransform.hpp"
#include "zeus/CVector3f.hpp" #include "zeus/CVector3f.hpp"
@ -183,4 +182,3 @@ public:
}; };
} }
#endif

View File

@ -1,5 +1,4 @@
#ifndef CPLANE_HPP #pragma once
#define CPLANE_HPP
#include "Global.hpp" #include "Global.hpp"
#include "zeus/CVector3f.hpp" #include "zeus/CVector3f.hpp"
@ -74,4 +73,3 @@ public:
}; };
} }
#endif // CPLANE_HPP

View File

@ -1,5 +1,4 @@
#ifndef CPROJECTION_HPP #pragma once
#define CPROJECTION_HPP
#include "Global.hpp" #include "Global.hpp"
#include "zeus/CMatrix4f.hpp" #include "zeus/CMatrix4f.hpp"
@ -125,4 +124,3 @@ protected:
}; };
} }
#endif // CMATRIX3F_HPP

View File

@ -1,5 +1,4 @@
#ifndef CQUATERNION_HPP #pragma once
#define CQUATERNION_HPP
#include "Global.hpp" #include "Global.hpp"
#include "CAxisAngle.hpp" #include "CAxisAngle.hpp"
@ -268,4 +267,3 @@ CQuaternion operator-(float lhs, const CQuaternion& rhs);
CQuaternion operator*(float lhs, const CQuaternion& rhs); CQuaternion operator*(float lhs, const CQuaternion& rhs);
CNUQuaternion operator*(float lhs, const CNUQuaternion& rhs); CNUQuaternion operator*(float lhs, const CNUQuaternion& rhs);
} }
#endif // CQUATERNION_HPP

View File

@ -1,5 +1,4 @@
#ifndef CRECTANGLE_HPP #pragma once
#define CRECTANGLE_HPP
#include "zeus/CVector2f.hpp" #include "zeus/CVector2f.hpp"
namespace zeus namespace zeus
@ -31,4 +30,3 @@ public:
}; };
} }
#endif // CRECTANGLE_HPP

View File

@ -1,5 +1,4 @@
#ifndef CRELANGLE_HPP #pragma once
#define CRELANGLE_HPP
#include "zeus/CVector3f.hpp" #include "zeus/CVector3f.hpp"
#include "zeus/Math.hpp" #include "zeus/Math.hpp"
@ -53,4 +52,3 @@ struct CRelAngle
}; };
} }
#endif // CRELANGLE_HPP

View File

@ -1,5 +1,4 @@
#ifndef CSPHERE_HPP #pragma once
#define CSPHERE_HPP
#include "zeus/CVector3f.hpp" #include "zeus/CVector3f.hpp"
@ -25,4 +24,3 @@ public:
}; };
} }
#endif

View File

@ -1,5 +1,4 @@
#ifndef CTRANSFORM_HPP #pragma once
#define CTRANSFORM_HPP
#include "Global.hpp" #include "Global.hpp"
#include "zeus/CMatrix3f.hpp" #include "zeus/CMatrix3f.hpp"
@ -279,4 +278,3 @@ CTransform CTransformFromAxisAngle(const CVector3f& axis, float angle);
CTransform lookAt(const CVector3f& pos, const CVector3f& lookPos, const CVector3f& up = CVector3f::skUp); CTransform lookAt(const CVector3f& pos, const CVector3f& lookPos, const CVector3f& up = CVector3f::skUp);
} }
#endif // CTRANSFORM_HPP

View File

@ -1,5 +1,4 @@
#ifndef CUNITVECTOR_HPP #pragma once
#define CUNITVECTOR_HPP
#include "zeus/CVector3f.hpp" #include "zeus/CVector3f.hpp"
@ -23,4 +22,3 @@ public:
} }
}; };
} }
#endif

View File

@ -1,5 +1,4 @@
#ifndef CVECTOR2f_HPP #pragma once
#define CVECTOR2f_HPP
#include "Global.hpp" #include "Global.hpp"
#include "zeus/Math.hpp" #include "zeus/Math.hpp"
@ -429,4 +428,3 @@ static inline CVector2f operator/(float lhs, const CVector2f& rhs)
} }
} }
#endif // CVECTOR2F_HPP

View File

@ -1,5 +1,4 @@
#ifndef CVECTOR2i_HPP #pragma once
#define CVECTOR2i_HPP
#include "Global.hpp" #include "Global.hpp"
#include "zeus/Math.hpp" #include "zeus/Math.hpp"
@ -51,4 +50,3 @@ public:
}; };
} }
#endif // CVECTOR2i_HPP

View File

@ -1,5 +1,4 @@
#ifndef CVECTOR3D_HPP #pragma once
#define CVECTOR3D_HPP
#include <athena/Types.hpp> #include <athena/Types.hpp>
#include "Global.hpp" #include "Global.hpp"
@ -287,4 +286,3 @@ static inline CVector3d operator/(double lhs, const CVector3d& rhs)
} }
} }
#endif

View File

@ -1,5 +1,4 @@
#ifndef CVECTOR3F_HPP #pragma once
#define CVECTOR3F_HPP
#include "Global.hpp" #include "Global.hpp"
#include "zeus/Math.hpp" #include "zeus/Math.hpp"
@ -441,4 +440,3 @@ static inline CVector3f operator/(float lhs, const CVector3f& rhs)
} }
#endif // CVECTOR3F_HPP

View File

@ -1,5 +1,4 @@
#ifndef CVECTOR4F_HPP #pragma once
#define CVECTOR4F_HPP
#include "Global.hpp" #include "Global.hpp"
#include "TVectorUnion.hpp" #include "TVectorUnion.hpp"
@ -418,4 +417,3 @@ static inline CVector4f operator/(float lhs, const CVector4f& rhs)
} }
} }
#endif // CVECTOR4F_HPP

View File

@ -1,5 +1,4 @@
#ifndef ZEUS_GLOBAL_HPP #pragma once
#define ZEUS_GLOBAL_HPP
#if _M_IX86_FP >= 1 || _M_X64 #if _M_IX86_FP >= 1 || _M_X64
#define __SSE__ 1 #define __SSE__ 1
@ -61,4 +60,3 @@
inline int rotr(int x, int n) { return ((x >> n) | (x << (32 - n))); } inline int rotr(int x, int n) { return ((x >> n) | (x << (32 - n))); }
inline int rotl(int x, int n) { return ((x << n) | (x >> (32 - n))); } inline int rotl(int x, int n) { return ((x << n) | (x >> (32 - n))); }
#endif // ZEUS_GLOBAL_HPP

View File

@ -1,5 +1,4 @@
#ifndef MATH_HPP #pragma once
#define MATH_HPP
#include <cfloat> #include <cfloat>
#undef min #undef min
@ -156,4 +155,3 @@ inline bool close_enough(double a, double b, double epsilon = 0.0000099999997473
} }
} }
#endif // MATH_HPP

View File

@ -1,5 +1,4 @@
#ifndef TVECTORUNION #pragma once
#define TVECTORUNION
namespace zeus namespace zeus
{ {
@ -21,4 +20,3 @@ typedef union {
} TDblVectorUnion; } TDblVectorUnion;
} }
#endif // TVECTORUNION

View File

@ -1,5 +1,4 @@
#ifndef __MATHLIB_HPP #pragma once
#define __MATHLIB_HPP
#include "zeus/CAxisAngle.hpp" #include "zeus/CAxisAngle.hpp"
#include "zeus/CRelAngle.hpp" #include "zeus/CRelAngle.hpp"
@ -25,4 +24,3 @@
#include "zeus/Global.hpp" #include "zeus/Global.hpp"
#include "zeus/Math.hpp" #include "zeus/Math.hpp"
#endif // __MATHLIB_HPP