Skip to content

Commit 83cf266

Browse files
committed
Migrate all headers to #pragma once
1 parent bb80a1c commit 83cf266

33 files changed

Lines changed: 67 additions & 56 deletions

include/D_800AFE8C_A71FC_type.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#pragma once
2+
13
#include "common.h"
24

35
typedef struct {

include/EepromSaveData_type.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#pragma once
2+
13
#include "common.h"
24

35
typedef struct {

include/animation/bone_animation.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#pragma once
2+
13
#include "common.h"
24
#include "gamestate.h"
35
#include "math/geometry.h"

include/audio/audio_manager.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#pragma once
2+
13
#include "common.h"
24
#include "libaudio.h"
35
#include "os_thread.h"
@@ -15,4 +17,4 @@ void initAudioManager(
1517
s32 maxChannels,
1618
s32 maxVoices,
1719
s32 sampleRate
18-
);
20+
);

include/core/buffers.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#pragma once
2+
13
#include "common.h"
24

35
#define SCREEN_WIDTH 320
@@ -11,4 +13,4 @@ typedef union {
1113
extern FrameBuffer gFrameBuffer;
1214
extern u8 gMemoryHeapBase[];
1315
#define gMemoryHeapEnd (gMemoryHeapBase + MEMORY_HEAP_SIZE)
14-
extern FrameBuffer gAuxFrameBuffers[];
16+
extern FrameBuffer gAuxFrameBuffers[];

include/core/mainEntrypoint.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#pragma once
2+
13
#include "common.h"
24

3-
void mainThreadEntrypoint(void *arg);
5+
void mainThreadEntrypoint(void *arg);

include/core/stubs.h

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,7 @@
1-
#ifndef _90D0_H_
2-
#define _90D0_H_
1+
#pragma once
32

43
#include "common.h"
54

65
void nullsub(void);
76
s32 nullsub_s32(void *, s32, s32);
87
s32 nullsub_s32_2(void *, s32, s32);
9-
10-
#endif

include/credits/credits_text.h

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
#ifndef _1DC900_H_
2-
#define _1DC900_H_
1+
#pragma once
32

43
#include "animation/easing_state.h"
54
#include "data/data_table.h"
@@ -53,5 +52,3 @@ typedef struct {
5352

5453
void initCreditsScrollingTextEffects(void *state);
5554
void updateCreditsScrollingTextEffects(CreditsScrollerState *s);
56-
57-
#endif

include/cutscene/1DD170.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
1+
#pragma once
2+
13
#include "common.h"
24
#include "cutscene/cutscene_manager.h"
35

46
s32 getCategorySkipValue(u8 categoryIndex);
57
s32 initializeSlotState(StateEntry *state, CutsceneManager *cutsceneManager, s8 slotIndex);
6-
s32 updateSlotData(CutsceneManager *cutsceneManager, s8 slotIndex);
8+
s32 updateSlotData(CutsceneManager *cutsceneManager, s8 slotIndex);

include/cutscene/cutscene_bgm.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#pragma once
2+
13
#include "common.h"
24

35
typedef struct {
@@ -16,4 +18,4 @@ s32 cutsceneBgmFadeOut_validate(void);
1618
void cutsceneBgmFadeOut_exec(s16 *arg0);
1719
void cutsceneBgmVolume_init(void);
1820
s32 cutsceneBgmVolume_validate(void);
19-
void cutsceneBgmVolume_exec(CutsceneBgmVolumeArgs *arg0);
21+
void cutsceneBgmVolume_exec(CutsceneBgmVolumeArgs *arg0);

0 commit comments

Comments
 (0)