diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2019-11-16 22:44:13 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-11-16 22:44:13 +0100 |
commit | 6cde380cee74a136710006d6d05c5dcccc032a39 (patch) | |
tree | ba7bc1d19f4f735773714548ba86c16ce8c17c6d /modules/mono/mono_gd/gd_mono_log.h | |
parent | 98caeb635c2e4d48e0d6d6dbd82af183ab83f894 (diff) | |
parent | 8cbe4a3db49f61992a978d2311455377bb3a9656 (diff) |
Merge pull request #33603 from neikeq/ばか
Mono/C#: WebAssembly and initial AOT support
Diffstat (limited to 'modules/mono/mono_gd/gd_mono_log.h')
-rw-r--r-- | modules/mono/mono_gd/gd_mono_log.h | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/modules/mono/mono_gd/gd_mono_log.h b/modules/mono/mono_gd/gd_mono_log.h index 91d0557aa3..4cd5a662fb 100644 --- a/modules/mono/mono_gd/gd_mono_log.h +++ b/modules/mono/mono_gd/gd_mono_log.h @@ -31,10 +31,17 @@ #ifndef GD_MONO_LOG_H #define GD_MONO_LOG_H +#include <mono/utils/mono-logger.h> + +#include "core/typedefs.h" + +#if !defined(JAVASCRIPT_ENABLED) #include "core/os/file_access.h" +#endif class GDMonoLog { +#if !defined(JAVASCRIPT_ENABLED) int log_level_id; FileAccess *log_file; @@ -43,6 +50,9 @@ class GDMonoLog { bool _try_create_logs_dir(const String &p_logs_dir); void _delete_old_log_files(const String &p_logs_dir); + static void mono_log_callback(const char *log_domain, const char *log_level, const char *message, mono_bool fatal, void *user_data); +#endif + static GDMonoLog *singleton; public: @@ -50,10 +60,6 @@ public: void initialize(); - _FORCE_INLINE_ FileAccess *get_log_file() { return log_file; } - _FORCE_INLINE_ String get_log_file_path() { return log_file_path; } - _FORCE_INLINE_ int get_log_level_id() { return log_level_id; } - GDMonoLog(); ~GDMonoLog(); }; |