Skip to content

Commit

Permalink
fix check number of args in nci calls
Browse files Browse the repository at this point in the history
  • Loading branch information
NotFound committed Jun 11, 2012
1 parent 1511b37 commit bd0eddb
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions winxedxx.h
Expand Up @@ -206,7 +206,7 @@ struct callfunc<Ret (*)(Arg0, Arg1, Arg2, Arg3)>
{ {
static WxxObjectPtr doit(Ret (*f)(Arg0, Arg1, Arg2, Arg3), WxxObjectArray &args) static WxxObjectPtr doit(Ret (*f)(Arg0, Arg1, Arg2, Arg3), WxxObjectArray &args)
{ {
checkargs(args, 3); checkargs(args, 4);
return handleResult((*f)(getarg<Arg0>(args, 0), getarg<Arg1>(args, 1), getarg<Arg2>(args, 2), getarg<Arg3>(args, 3))); return handleResult((*f)(getarg<Arg0>(args, 0), getarg<Arg1>(args, 1), getarg<Arg2>(args, 2), getarg<Arg3>(args, 3)));
} }
}; };
Expand All @@ -215,7 +215,7 @@ struct callfunc<void (*)(Arg0, Arg1, Arg2, Arg3)>
{ {
static WxxObjectPtr doit(void (*f)(Arg0, Arg1, Arg2, Arg3), WxxObjectArray &args) static WxxObjectPtr doit(void (*f)(Arg0, Arg1, Arg2, Arg3), WxxObjectArray &args)
{ {
checkargs(args, 3); checkargs(args, 4);
(*f)(getarg<Arg0>(args, 0), getarg<Arg1>(args, 1), getarg<Arg2>(args, 2), getarg<Arg3>(args, 3)); (*f)(getarg<Arg0>(args, 0), getarg<Arg1>(args, 1), getarg<Arg2>(args, 2), getarg<Arg3>(args, 3));
return winxedxxnull; return winxedxxnull;
} }
Expand All @@ -226,7 +226,7 @@ struct callfunc<Ret (*)(Arg0, Arg1, Arg2, Arg3, Arg4)>
{ {
static WxxObjectPtr doit(Ret (*f)(Arg0, Arg1, Arg2, Arg3, Arg4), WxxObjectArray &args) static WxxObjectPtr doit(Ret (*f)(Arg0, Arg1, Arg2, Arg3, Arg4), WxxObjectArray &args)
{ {
checkargs(args, 3); checkargs(args, 5);
return handleResult((*f)(getarg<Arg0>(args, 0), getarg<Arg1>(args, 1), getarg<Arg2>(args, 2), getarg<Arg3>(args, 3), getarg<Arg4>(args, 4))); return handleResult((*f)(getarg<Arg0>(args, 0), getarg<Arg1>(args, 1), getarg<Arg2>(args, 2), getarg<Arg3>(args, 3), getarg<Arg4>(args, 4)));
} }
}; };
Expand All @@ -235,7 +235,7 @@ struct callfunc<void (*)(Arg0, Arg1, Arg2, Arg3, Arg4)>
{ {
static WxxObjectPtr doit(void (*f)(Arg0, Arg1, Arg2, Arg3, Arg4), WxxObjectArray &args) static WxxObjectPtr doit(void (*f)(Arg0, Arg1, Arg2, Arg3, Arg4), WxxObjectArray &args)
{ {
checkargs(args, 3); checkargs(args, 5);
(*f)(getarg<Arg0>(args, 0), getarg<Arg1>(args, 1), getarg<Arg2>(args, 2), getarg<Arg3>(args, 3), getarg<Arg4>(args, 4)); (*f)(getarg<Arg0>(args, 0), getarg<Arg1>(args, 1), getarg<Arg2>(args, 2), getarg<Arg3>(args, 3), getarg<Arg4>(args, 4));
return winxedxxnull; return winxedxxnull;
} }
Expand Down

0 comments on commit bd0eddb

Please sign in to comment.