• R/O
  • HTTP
  • SSH
  • HTTPS

hengband: Commit

変愚蛮怒のメインリポジトリです


Commit MetaInfo

Revision7eed98c2f1eb1f3ee1223956e3b3ae38e703f986 (tree)
Time2019-06-08 20:59:34
Authordeskull <deskull@user...>
Commiterdeskull

Log Message

[Refactor] #37353 ゲームメッセージの日英切り替えマクロを util.h へ移動.

Change Summary

Incremental Difference

--- a/src/defines.h
+++ b/src/defines.h
@@ -39,13 +39,3 @@
3939 */
4040
4141 /*** Screen Locations ***/
42-
43-
44-/*
45- Language selection macro
46-*/
47-#ifdef JP
48-#define _(JAPANESE,ENGLISH) (JAPANESE)
49-#else
50-#define _(JAPANESE,ENGLISH) (ENGLISH)
51-#endif
--- a/src/util.h
+++ b/src/util.h
@@ -60,6 +60,16 @@ extern int PlayerUID;
6060 #define have_pval_flags(ARRAY) !!((ARRAY)[0] & (0x00003f7f))
6161
6262 /*
63+ Language selection macro
64+ */
65+#ifdef JP
66+#define _(JAPANESE,ENGLISH) (JAPANESE)
67+#else
68+#define _(JAPANESE,ENGLISH) (ENGLISH)
69+#endif
70+
71+
72+ /*
6373 * Sort-array element
6474 */
6575 typedef struct tag_type tag_type;
Show on old repository browser