mirror of
https://github.com/knightfox75/nds_nflib.git
synced 2025-06-18 16:55:32 -04:00
library: Fix header guards
Symbols that start with two underscores plus an uppercase letter are reserved by the C standard.
This commit is contained in:
parent
c34dbb2912
commit
64768e92d8
@ -9,8 +9,8 @@
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#ifndef __NF_2D_H__
|
||||
#define __NF_2D_H__
|
||||
#ifndef NF_2D_H__
|
||||
#define NF_2D_H__
|
||||
|
||||
/// @file nf_2d.h
|
||||
/// @brief Functions to setup 2D video options.
|
||||
@ -254,7 +254,7 @@ void NF_SpriteRotScale(u8 screen, u8 id, s16 angle, u16 sx, u16 sy);
|
||||
|
||||
/// @}
|
||||
|
||||
#endif
|
||||
#endif // NF_2D_H__
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
@ -9,8 +9,8 @@
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#ifndef __NF_3D_H__
|
||||
#define __NF_3D_H__
|
||||
#ifndef NF_3D_H__
|
||||
#define NF_3D_H__
|
||||
|
||||
#include <nds.h>
|
||||
|
||||
@ -59,7 +59,7 @@ u16 NF_GetTextureSize(u16 textel);
|
||||
|
||||
/// @}
|
||||
|
||||
#endif
|
||||
#endif // NF_3D_H__
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
@ -9,8 +9,8 @@
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#ifndef __NF_AFFINEBG_H__
|
||||
#define __NF_AFFINEBG_H__
|
||||
#ifndef NF_AFFINEBG_H__
|
||||
#define NF_AFFINEBG_H__
|
||||
|
||||
#include <nds.h>
|
||||
|
||||
@ -174,7 +174,7 @@ void NF_AffineBgCenter(u8 screen, u8 layer, s32 x, s32 y);
|
||||
|
||||
/// @}
|
||||
|
||||
#endif
|
||||
#endif // NF_AFFINEBG_H__
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
@ -9,8 +9,8 @@
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#ifndef __NF_BASIC_H__
|
||||
#define __NF_BASIC_H__
|
||||
#ifndef NF_BASIC_H__
|
||||
#define NF_BASIC_H__
|
||||
|
||||
/// @file nf_basic.h
|
||||
/// @brief General functions of NFLib
|
||||
@ -106,7 +106,7 @@ u8 NF_GetLanguage(void);
|
||||
|
||||
/// @}
|
||||
|
||||
#endif
|
||||
#endif // NF_BASIC_H__
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
@ -9,8 +9,8 @@
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#ifndef __NF_BITMAPBG_H__
|
||||
#define __NF_BITMAPBG_H__
|
||||
#ifndef NF_BITMAPBG_H__
|
||||
#define NF_BITMAPBG_H__
|
||||
|
||||
#include <nds.h>
|
||||
|
||||
@ -318,7 +318,7 @@ void NF_Flip8bitsBackBuffer(u8 screen, u8 destination);
|
||||
|
||||
/// @}
|
||||
|
||||
#endif
|
||||
#endif // NF_BITMAPBG_H__
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
@ -9,8 +9,8 @@
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#ifndef __NF_COLLISION_H__
|
||||
#define __NF_COLLISION_H__
|
||||
#ifndef NF_COLLISION_H__
|
||||
#define NF_COLLISION_H__
|
||||
|
||||
#include <nds.h>
|
||||
|
||||
@ -136,7 +136,7 @@ u8 NF_GetPoint(u8 slot, s32 x, s32 y);
|
||||
|
||||
/// @}
|
||||
|
||||
#endif
|
||||
#endif // NF_COLLISION_H__
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
@ -9,8 +9,8 @@
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#ifndef __NF_LIB_H__
|
||||
#define __NF_LIB_H__
|
||||
#ifndef NF_LIB_H__
|
||||
#define NF_LIB_H__
|
||||
|
||||
#include <nf_2d.h>
|
||||
#include <nf_3d.h>
|
||||
@ -27,7 +27,7 @@ extern "C" {
|
||||
#include <nf_text.h>
|
||||
#include <nf_tiledbg.h>
|
||||
|
||||
#endif
|
||||
#endif // NF_LIB_H__
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
@ -9,8 +9,8 @@
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#ifndef __NF_MEDIA_H__
|
||||
#define __NF_MEDIA_H__
|
||||
#ifndef NF_MEDIA_H__
|
||||
#define NF_MEDIA_H__
|
||||
|
||||
#include <nds.h>
|
||||
|
||||
@ -43,7 +43,7 @@ void NF_LoadBMP(const char *file, u8 slot);
|
||||
|
||||
/// @}
|
||||
|
||||
#endif
|
||||
#endif // NF_MEDIA_H__
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
@ -9,8 +9,8 @@
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#ifndef __NF_MIXEDBG_H__
|
||||
#define __NF_MIXEDBG_H__
|
||||
#ifndef NF_MIXEDBG_H__
|
||||
#define NF_MIXEDBG_H__
|
||||
|
||||
#include <nds.h>
|
||||
|
||||
@ -35,7 +35,7 @@ void NF_InitMixedBgSys(u8 screen);
|
||||
|
||||
/// @}
|
||||
|
||||
#endif
|
||||
#endif // NF_MIXEDBG_H__
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
@ -9,8 +9,8 @@
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#ifndef __NF_SOUND_H__
|
||||
#define __NF_SOUND_H__
|
||||
#ifndef NF_SOUND_H__
|
||||
#define NF_SOUND_H__
|
||||
|
||||
#include <nds.h>
|
||||
|
||||
@ -101,7 +101,7 @@ u8 NF_PlayRawSound(u8 id, u8 volume, u8 pan, bool loop, u16 loopfrom);
|
||||
|
||||
/// @}
|
||||
|
||||
#endif
|
||||
#endif // NF_SOUND_H__
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
@ -9,8 +9,8 @@
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#ifndef __NF_SPRITE256_H__
|
||||
#define __NF_SPRITE256_H__
|
||||
#ifndef NF_SPRITE256_H__
|
||||
#define NF_SPRITE256_H__
|
||||
|
||||
/// @file nf_sprite256.h
|
||||
/// @brief Functions related to 256 color sprites.
|
||||
@ -436,7 +436,7 @@ void NF_SpriteGetPalColor(u8 screen, u8 pal, u8 number, u8 *r, u8 *g, u8 *b);
|
||||
|
||||
/// @}
|
||||
|
||||
#endif
|
||||
#endif // NF_SPRITE256_H__
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
@ -9,8 +9,8 @@
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#ifndef __NF_SPRITE3D_H__
|
||||
#define __NF_SPRITE3D_H__
|
||||
#ifndef NF_SPRITE3D_H__
|
||||
#define NF_SPRITE3D_H__
|
||||
|
||||
#include <nds.h>
|
||||
|
||||
@ -412,7 +412,7 @@ void NF_3dSpriteSetDepth(u8 id, s16 z);
|
||||
|
||||
/// @}
|
||||
|
||||
#endif
|
||||
#endif // NF_SPRITE3D_H__
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
@ -9,8 +9,8 @@
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#ifndef __NF_TEXT_H__
|
||||
#define __NF_TEXT_H__
|
||||
#ifndef NF_TEXT_H__
|
||||
#define NF_TEXT_H__
|
||||
|
||||
#include <nds.h>
|
||||
|
||||
@ -230,7 +230,7 @@ void NF_SetTextColor(u8 screen, u8 layer, u8 color);
|
||||
|
||||
/// @}
|
||||
|
||||
#endif
|
||||
#endif // NF_TEXT_H__
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
@ -9,8 +9,8 @@
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#ifndef __NF_TEXT16_H__
|
||||
#define __NF_TEXT16_H__
|
||||
#ifndef NF_TEXT16_H__
|
||||
#define NF_TEXT16_H__
|
||||
|
||||
#include <nds.h>
|
||||
|
||||
@ -127,7 +127,7 @@ void NF_ClearTextLayer16(u8 screen, u8 layer);
|
||||
|
||||
/// @}
|
||||
|
||||
#endif
|
||||
#endif // NF_TEXT16_H__
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
@ -9,8 +9,8 @@
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#ifndef __NF_TILEDBG_H__
|
||||
#define __NF_TILEDBG_H__
|
||||
#ifndef NF_TILEDBG_H__
|
||||
#define NF_TILEDBG_H__
|
||||
|
||||
/// @file nf_tiledbg.h
|
||||
/// @brief Functions related to regular tiled backgrounds.
|
||||
@ -548,7 +548,7 @@ void NF_RotateTileGfx(u8 slot, u16 tile, u8 rotation);
|
||||
|
||||
/// @}
|
||||
|
||||
#endif
|
||||
#endif // NF_TILEDBG_H__
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
@ -9,8 +9,8 @@
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#ifndef __NF_WIFI_H__
|
||||
#define __NF_WIFI_H__
|
||||
#ifndef NF_WIFI_H__
|
||||
#define NF_WIFI_H__
|
||||
|
||||
/// @file nf_wifi.h
|
||||
/// @brief Basic WiFi helpers
|
||||
@ -163,7 +163,7 @@ s32 NF_WIFI_UdpListen(u32 timeout);
|
||||
|
||||
/// @}
|
||||
|
||||
#endif
|
||||
#endif // NF_WIFI_H__
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user