use #pragma once

This commit is contained in:
Garux
2021-10-22 02:19:50 +03:00
parent 3362f29500
commit bf6389fc26
374 changed files with 400 additions and 1565 deletions

View File

@@ -19,8 +19,7 @@
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
#if !defined( INCLUDED_IDENT_H )
#define INCLUDED_IDENT_H
#pragma once
#include <string.h>
@@ -28,5 +27,3 @@
inline bool ident_equal( const unsigned char* ident, const unsigned char* other ){
return ident[0] == other[0] && ident[1] == other[1] && ident[2] == other[2] && ident[3] == other[3];
}
#endif

View File

@@ -19,14 +19,10 @@
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
#if !defined( INCLUDED_MD2_H )
#define INCLUDED_MD2_H
#pragma once
namespace scene {
class Node;
}
class ArchiveFile;
scene::Node& loadMD2Model( ArchiveFile& file );
#endif

View File

@@ -19,13 +19,10 @@
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
#if !defined( INCLUDED_MD3_H )
#define INCLUDED_MD3_H
#pragma once
namespace scene {
class Node;
}
class ArchiveFile;
scene::Node& loadMD3Model( ArchiveFile& file );
#endif

View File

@@ -19,8 +19,7 @@
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
#if !defined( INCLUDED_MD3NORMALS_H )
#define INCLUDED_MD3NORMALS_H
#pragma once
#include "render.h"
@@ -37,5 +36,3 @@ inline Normal3f DecodeNormal( const byte bytes[2] ){
static_cast<float>( cos( lng ) )
);
}
#endif

View File

@@ -19,13 +19,10 @@
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
#if !defined( INCLUDED_MD5_H )
#define INCLUDED_MD5_H
#pragma once
namespace scene {
class Node;
}
class ArchiveFile;
scene::Node& loadMD5Model( ArchiveFile& file );
#endif

View File

@@ -19,14 +19,10 @@
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
#if !defined( INCLUDED_MDC_H )
#define INCLUDED_MDC_H
#pragma once
namespace scene {
class Node;
}
class ArchiveFile;
scene::Node& loadMDCModel( ArchiveFile& file );
#endif

View File

@@ -19,13 +19,10 @@
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
#if !defined( INCLUDED_MDL_H )
#define INCLUDED_MDL_H
#pragma once
namespace scene {
class Node;
}
class ArchiveFile;
scene::Node& loadMDLModel( ArchiveFile& file );
#endif

View File

@@ -19,8 +19,7 @@
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
#if !defined( INCLUDED_MDLFORMAT_H )
#define INCLUDED_MDLFORMAT_H
#pragma once
typedef unsigned char byte;
@@ -114,5 +113,3 @@ typedef struct {
typedef struct {
aliasskintype_t type;
} mdlSkinType_t;
#endif

View File

@@ -19,12 +19,9 @@
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
#if !defined( INCLUDED_MDLIMAGE_H )
#define INCLUDED_MDLIMAGE_H
#pragma once
class Image;
class ArchiveFile;
Image* LoadMDLImage( ArchiveFile& file );
#endif

View File

@@ -19,6 +19,7 @@
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
#pragma once
typedef const float mdlNormal_t[3];
typedef const mdlNormal_t mdlNormals_t[162];

View File

@@ -19,8 +19,7 @@
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
#if !defined( INCLUDED_MODEL_H )
#define INCLUDED_MODEL_H
#pragma once
#include "cullable.h"
#include "renderable.h"
@@ -565,5 +564,3 @@ inline void Model_constructNull( Model& model ){
model.updateAABB();
}
#endif

View File

@@ -19,7 +19,4 @@
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
#if !defined( INCLUDED_PLUGIN_H )
#define INCLUDED_PLUGIN_H
#endif
#pragma once