From deebeb27424e63a9f30cb855a4e0d72ea586d1c9 Mon Sep 17 00:00:00 2001 From: Marcelo Fernandez Date: Mon, 2 Jul 2018 16:18:58 -0300 Subject: Add a new notification to detect crashes on native scripts --- modules/gdnative/nativescript/nativescript.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'modules/gdnative/nativescript/nativescript.h') diff --git a/modules/gdnative/nativescript/nativescript.h b/modules/gdnative/nativescript/nativescript.h index b47962dc37..be093dde4b 100644 --- a/modules/gdnative/nativescript/nativescript.h +++ b/modules/gdnative/nativescript/nativescript.h @@ -181,6 +181,9 @@ class NativeScriptInstance : public ScriptInstance { Object *owner; Ref script; +#ifdef DEBUG_ENABLED + StringName current_method_call; +#endif void _ml_call_reversed(NativeScriptDesc *script_data, const StringName &p_method, const Variant **p_args, int p_argcount); -- cgit v1.2.3