diff options
| author | Juan Linietsky | 2014-11-02 11:31:01 -0300 |
|---|---|---|
| committer | Juan Linietsky | 2014-11-02 11:31:01 -0300 |
| commit | d85b67be53bac252c0a28b799d56d1b359c4ee99 (patch) | |
| tree | 5227e145e3271bfee542bdd3e4237c3378565306 /core/bind/core_bind.cpp | |
| parent | 738eb2c1a88d441eacc4149ce8f1c12a90267191 (diff) | |
| download | godot-d85b67be53bac252c0a28b799d56d1b359c4ee99.tar.gz godot-d85b67be53bac252c0a28b799d56d1b359c4ee99.tar.zst godot-d85b67be53bac252c0a28b799d56d1b359c4ee99.zip | |
Diffstat (limited to 'core/bind/core_bind.cpp')
| -rw-r--r-- | core/bind/core_bind.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/core/bind/core_bind.cpp b/core/bind/core_bind.cpp index c66416ea6..513c7a947 100644 --- a/core/bind/core_bind.cpp +++ b/core/bind/core_bind.cpp @@ -597,7 +597,15 @@ void _OS::native_video_stop() { OS::get_singleton()->native_video_stop(); }; +bool _OS::is_debug_build() const { +#ifdef DEBUG_ENABLED + return true; +#else + return false; +#endif + +} String _OS::get_custom_level() const { return OS::get_singleton()->get_custom_level(); @@ -668,6 +676,8 @@ void _OS::_bind_methods() { ObjectTypeDB::bind_method(_MD("can_use_threads"),&_OS::can_use_threads); + ObjectTypeDB::bind_method(_MD("is_debug_build"),&_OS::is_debug_build); + //ObjectTypeDB::bind_method(_MD("get_mouse_button_state"),&_OS::get_mouse_button_state); ObjectTypeDB::bind_method(_MD("dump_memory_to_file","file"),&_OS::dump_memory_to_file); |
