From e97336a5570028a3efba65d482a8b20c72cea1f4 Mon Sep 17 00:00:00 2001 From: Emmanuel Leblond Date: Fri, 6 Apr 2018 19:20:12 +0200 Subject: [PATCH 1/2] Fix Pluginscript add_global_constant mandatory value check --- modules/gdnative/pluginscript/register_types.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/gdnative/pluginscript/register_types.cpp b/modules/gdnative/pluginscript/register_types.cpp index 8888f9e157f..411d4911fa7 100644 --- a/modules/gdnative/pluginscript/register_types.cpp +++ b/modules/gdnative/pluginscript/register_types.cpp @@ -64,7 +64,7 @@ static Error _check_language_desc(const godot_pluginscript_language_desc *desc) // desc->make_function is not mandatory // desc->complete_code is not mandatory // desc->auto_indent_code is not mandatory - // desc->add_global_constant is not mandatory + ERR_FAIL_COND_V(!desc->add_global_constant, ERR_BUG); // desc->debug_get_error is not mandatory // desc->debug_get_stack_level_count is not mandatory // desc->debug_get_stack_level_line is not mandatory From adecd6f66ff152e73b59d7c157d72305a092ab9c Mon Sep 17 00:00:00 2001 From: Emmanuel Leblond Date: Sat, 7 Apr 2018 00:11:26 +0200 Subject: [PATCH 2/2] Correct profiling_frame naming in pluginscript --- modules/gdnative/pluginscript/register_types.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/gdnative/pluginscript/register_types.cpp b/modules/gdnative/pluginscript/register_types.cpp index 411d4911fa7..924abf29df4 100644 --- a/modules/gdnative/pluginscript/register_types.cpp +++ b/modules/gdnative/pluginscript/register_types.cpp @@ -78,7 +78,7 @@ static Error _check_language_desc(const godot_pluginscript_language_desc *desc) // desc->profiling_stop is not mandatory // desc->profiling_get_accumulated_data is not mandatory // desc->profiling_get_frame_data is not mandatory - // desc->frame is not mandatory + // desc->profiling_frame is not mandatory ERR_FAIL_COND_V(!desc->script_desc.init, ERR_BUG); ERR_FAIL_COND_V(!desc->script_desc.finish, ERR_BUG);