summaryrefslogtreecommitdiffstats
path: root/core/func_ref.cpp
diff options
context:
space:
mode:
authorJuan Linietsky <reduzio@gmail.com>2016-09-07 19:39:02 -0300
committerJuan Linietsky <reduzio@gmail.com>2016-09-07 19:39:57 -0300
commit828e1c092fa706d4392363435950960261765ba4 (patch)
tree12fd9dc722ee3c7cb604e44264550de9fd72868b /core/func_ref.cpp
parent19bd661a8fdc381bb68018028bf76997cf74b65a (diff)
downloadredot-engine-828e1c092fa706d4392363435950960261765ba4.tar.gz
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#
Diffstat (limited to 'core/func_ref.cpp')
-rw-r--r--core/func_ref.cpp6
1 files changed, 1 insertions, 5 deletions
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<Variant> 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);
}