diff options
| author | 杨威 <[email protected]> | 2020-10-19 10:53:45 +0800 |
|---|---|---|
| committer | 杨威 <[email protected]> | 2020-10-19 10:53:45 +0800 |
| commit | ed89137adda84b7008cd6ce1a2645b487c78bafc (patch) | |
| tree | 809799ed0940af63fb503166ae716520b06e1e7a | |
| parent | b8f6ea45d90e0267025e7795f5ce3844f9a9e3ec (diff) | |
✨feat(breakpad_mini): 适配v1.0.2,init传入版本v4.1.13
| -rw-r--r-- | src/config/config_parse.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/config/config_parse.cpp b/src/config/config_parse.cpp index 60412e3..6d940ea 100644 --- a/src/config/config_parse.cpp +++ b/src/config/config_parse.cpp @@ -814,9 +814,13 @@ int sapp_parse_config(void) /* init breakpad_mini */ void sapp_init_breakpad_mini(void) - { - struct breakpad_instance * g_breakpad = breakpad_init(default_config_file, "breakpad", sapp_global_val->individual_fixed.log_handle); +#ifdef GIT_VERSION + __attribute__((__used__)) const char *sapp_git_ver = GIT_VERSION; +#else + const char * sapp_git_ver = "sapp_version_unkonw" +#endif + struct breakpad_instance * g_breakpad = breakpad_init(default_config_file, "breakpad", sapp_global_val->individual_fixed.log_handle, sapp_git_ver); if(g_breakpad == NULL){exit(-1);} sapp_global_val->individual_fixed.breakpad = g_breakpad; return; |
