C2A_Core
git_revision.h
[詳解]
1 
5 #ifndef GIT_REVISION_H_
6 #define GIT_REVISION_H_
7 
8 #include <stdint.h>
9 
11 
40 #ifdef C2A_GIT_REVISION_IGNORE
41 // commit hashを埋め込まない場合
42 
43 #define GIT_REVISION_C2A_CORE "0000000000000000000000000000000000000000"
44 #define GIT_REVISION_C2A_CORE_SHORT 0x0000000
45 #define GIT_REVISION_C2A_USER "0000000000000000000000000000000000000000"
46 #define GIT_REVISION_C2A_USER_SHORT 0x0000000
47 
48 #else
49 
50 // commit hashを埋め込むはずなのにsrc_user/Settings/git_revision_config.hで設定されていない
51 #if !defined(C2A_GIT_REVISION_FROM_OPTION) && !defined(C2A_GIT_REVISION_GENERATED)
52 #error "please specify git revision config in src_user/Settings/git_revision_config.h"
53 #endif // error
54 
55 #endif // C2A_GIT_REVISION_IGNORE
56 
57 // これをc2a_core_main.cで埋め込む
58 extern const char GIT_REV_CORE[41];
59 extern const uint32_t GIT_REV_CORE_SHORT;
60 extern const char GIT_REV_USER[41];
61 extern const uint32_t GIT_REV_USER_SHORT;
62 
63 #endif // GIT_REVISION_H_
const uint32_t GIT_REV_USER_SHORT
Definition: c2a_core_main.c:23
const char GIT_REV_CORE[41]
< 設定ないしcommit hashを読み込む
Definition: c2a_core_main.c:20
const uint32_t GIT_REV_CORE_SHORT
Definition: c2a_core_main.c:21
const char GIT_REV_USER[41]
Definition: c2a_core_main.c:22
C89 環境用 stdint.h