OSDN Git Service

[Refactor] #37353 ゲームメッセージの日英切り替えマクロを util.h へ移動.
authordeskull <deskull@users.sourceforge.jp>
Sat, 8 Jun 2019 11:59:34 +0000 (20:59 +0900)
committerdeskull <deskull@users.sourceforge.jp>
Sat, 8 Jun 2019 11:59:34 +0000 (20:59 +0900)
src/defines.h
src/util.h

index 8f74162..0570811 100644 (file)
  */
 
 /*** Screen Locations ***/
-
-
-/*
-  Language selection macro
-*/
-#ifdef JP
-#define _(JAPANESE,ENGLISH) (JAPANESE)
-#else
-#define _(JAPANESE,ENGLISH) (ENGLISH)
-#endif
index 19bf95d..08d1e0a 100644 (file)
@@ -60,6 +60,16 @@ extern int PlayerUID;
 #define have_pval_flags(ARRAY) !!((ARRAY)[0] & (0x00003f7f))
 
  /*
+   Language selection macro
+ */
+#ifdef JP
+#define _(JAPANESE,ENGLISH) (JAPANESE)
+#else
+#define _(JAPANESE,ENGLISH) (ENGLISH)
+#endif
+
+
+ /*
  * Sort-array element
  */
 typedef struct tag_type tag_type;