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
#define CAABOX_HPP
#pragma once
#include "zeus/CVector3f.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
#define CAXISANGLE_H
#pragma once
#include "Global.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
#define CCOLOR_HPP
#pragma once
#include "Global.hpp"
#include "zeus/Math.hpp"
@ -428,4 +427,3 @@ static inline CColor operator/(float lhs, const CColor& rhs)
#endif
}
}
#endif // CCOLOR_HPP

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -1,5 +1,4 @@
#ifndef CMATRIX3F_HPP
#define CMATRIX3F_HPP
#pragma once
#include "Global.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
#define CMATRIX4F
#pragma once
#include "zeus/CMatrix3f.hpp"
#include "zeus/CVector4f.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
#define COBBOX_HPP
#pragma once
#include "zeus/CTransform.hpp"
#include "zeus/CVector3f.hpp"
@ -183,4 +182,3 @@ public:
};
}
#endif

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -1,5 +1,4 @@
#ifndef CTRANSFORM_HPP
#define CTRANSFORM_HPP
#pragma once
#include "Global.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);
}
#endif // CTRANSFORM_HPP

View File

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

View File

@ -1,5 +1,4 @@
#ifndef CVECTOR2f_HPP
#define CVECTOR2f_HPP
#pragma once
#include "Global.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
#define CVECTOR2i_HPP
#pragma once
#include "Global.hpp"
#include "zeus/Math.hpp"
@ -51,4 +50,3 @@ public:
};
}
#endif // CVECTOR2i_HPP

View File

@ -1,5 +1,4 @@
#ifndef CVECTOR3D_HPP
#define CVECTOR3D_HPP
#pragma once
#include <athena/Types.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
#define CVECTOR3F_HPP
#pragma once
#include "Global.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
#define CVECTOR4F_HPP
#pragma once
#include "Global.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
#define ZEUS_GLOBAL_HPP
#pragma once
#if _M_IX86_FP >= 1 || _M_X64
#define __SSE__ 1
@ -61,4 +60,3 @@
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))); }
#endif // ZEUS_GLOBAL_HPP

View File

@ -1,5 +1,4 @@
#ifndef MATH_HPP
#define MATH_HPP
#pragma once
#include <cfloat>
#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
#define TVECTORUNION
#pragma once
namespace zeus
{
@ -21,4 +20,3 @@ typedef union {
} TDblVectorUnion;
}
#endif // TVECTORUNION

View File

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