summaryrefslogtreecommitdiff
path: root/include/command_macros_base.h
diff options
context:
space:
mode:
authorAnghelo Carvajal <angheloalf95@gmail.com>2021-11-24 23:41:23 -0300
committerGitHub <noreply@github.com>2021-11-24 21:41:23 -0500
commitc36decaf50c2deaf5010edbf73de8e0e3d725d48 (patch)
tree0203a639ee6c1c53127c8e2c64fe1ad72dce2058 /include/command_macros_base.h
parent665283432b7df51b8e031e91ad949402109a570f (diff)
Texture alignment macro and a bit of cleaning (#927)
* Add ALIGNED8 * Add designated initializers for cutscene macros * Fix typo in ovl_Boss_Sst XML * Fix extraction of ovlMagicDark * names suggestions * Remove braces * fix
Diffstat (limited to 'include/command_macros_base.h')
-rw-r--r--include/command_macros_base.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/command_macros_base.h b/include/command_macros_base.h
index b6154b863..3f1a1a0d0 100644
--- a/include/command_macros_base.h
+++ b/include/command_macros_base.h
@@ -16,6 +16,12 @@
#define CMD_W(a) (a)
+#ifdef __GNUC__
+#define CMD_F(a) {.f = (a)}
+#else
+#define CMD_F(a) {(a)}
+#endif
+
#define CMD_PTR(a) (u32)(a)
#endif