summaryrefslogtreecommitdiffstats
path: root/core/script_language.h
diff options
context:
space:
mode:
authorJuan Linietsky <reduzio@gmail.com>2017-07-16 12:39:23 -0300
committerJuan Linietsky <reduzio@gmail.com>2017-07-16 12:40:23 -0300
commit4366b7c8b0bf452236cdfd034d3a0e5d851576b9 (patch)
treeb5300139ef10f5f5ea709a07359b54145bef5b43 /core/script_language.h
parent40ab9adec3bd117e048ac477fcd9399e115f52f5 (diff)
downloadredot-engine-4366b7c8b0bf452236cdfd034d3a0e5d851576b9.tar.gz
Added a simpler/faster way to bind script languages instance wrappers to Godot
Diffstat (limited to 'core/script_language.h')
-rw-r--r--core/script_language.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/core/script_language.h b/core/script_language.h
index 6e39593a89..a81300233f 100644
--- a/core/script_language.h
+++ b/core/script_language.h
@@ -57,7 +57,7 @@ public:
static void set_scripting_enabled(bool p_enabled);
static bool is_scripting_enabled();
- static int get_language_count();
+ _FORCE_INLINE_ static int get_language_count() { return _language_count; }
static ScriptLanguage *get_language(int p_idx);
static void register_language(ScriptLanguage *p_language);
static void unregister_language(ScriptLanguage *p_language);
@@ -274,6 +274,9 @@ public:
virtual int profiling_get_accumulated_data(ProfilingInfo *p_info_arr, int p_info_max) = 0;
virtual int profiling_get_frame_data(ProfilingInfo *p_info_arr, int p_info_max) = 0;
+ virtual void *alloc_instance_binding_data(Object *p_object) { return NULL; } //optional, not used by all languages
+ virtual void free_instance_binding_data(void *p_data) {} //optional, not used by all languages
+
virtual void frame();
virtual ~ScriptLanguage(){};