From 828e1c092fa706d4392363435950960261765ba4 Mon Sep 17 00:00:00 2001 From: Juan Linietsky Date: Wed, 7 Sep 2016 19:39:02 -0300 Subject: Renamed the bind_native functions to bind_vararg, should make it show the documentation more clearly and also make it easier to bind to C# --- core/func_ref.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'core/func_ref.cpp') diff --git a/core/func_ref.cpp b/core/func_ref.cpp index 644d8b5b63..ca890111be 100644 --- a/core/func_ref.cpp +++ b/core/func_ref.cpp @@ -61,11 +61,7 @@ void FuncRef::_bind_methods() { MethodInfo mi; mi.name="call_func"; Vector defargs; - for(int i=0;i<10;i++) { - mi.arguments.push_back( PropertyInfo( Variant::NIL, "arg"+itos(i))); - defargs.push_back(Variant()); - } - ObjectTypeDB::bind_native_method(METHOD_FLAGS_DEFAULT,"call_func:Variant",&FuncRef::call_func,mi,defargs); + ObjectTypeDB::bind_vararg_method(METHOD_FLAGS_DEFAULT,"call_func:Variant",&FuncRef::call_func,mi,defargs); } -- cgit v1.2.3