-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor headers to allow cleaner inlines
- Loading branch information
Showing
11 changed files
with
117 additions
and
202 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
.vscode | ||
.vscode/* | ||
!.vscode/settings.json | ||
!.vscode/tasks.json | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,3 @@ | ||
#include "action.h" | ||
#include "game/level_update.h" | ||
|
||
static int sLastAction = 0; | ||
|
||
void Action_onNormal() | ||
{ | ||
sLastAction = gMarioStates->action; | ||
} | ||
|
||
int Action_last() | ||
{ | ||
return sLastAction; | ||
} | ||
|
||
bool Action_changed() | ||
{ | ||
return sLastAction != gMarioStates->action; | ||
} | ||
int Action_sLastAction = 0; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,20 @@ | ||
#pragma once | ||
#include "bool.h" | ||
#include "game/level_update.h" | ||
|
||
void Action_onNormal(); | ||
int Action_last(); | ||
bool Action_changed(); | ||
extern int Action_sLastAction; | ||
|
||
static inline void Action_onNormal() | ||
{ | ||
Action_sLastAction = gMarioStates->action; | ||
} | ||
|
||
static inline int Action_last() | ||
{ | ||
return Action_sLastAction; | ||
} | ||
|
||
static inline bool Action_changed() | ||
{ | ||
return Action_sLastAction != gMarioStates->action; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.