| Issue 206: | val_callN has false implementation | |
| 1 person starred this issue and may be notified of changes. | Back to list |
This was discussed on the Haxe Google Group, the correct implementation should be:
hx::Object * val_callN(hx::Object * arg1,hx::Object ** arg2, int nCount) THROWS
{
if (!arg1) Dynamic::ThrowBadFunctionError();
Array<Dynamic> args = Array_obj<Dynamic>::__new(0, nCount);
while (nCount--)
args << *arg2++;
return arg1->__Run( args ).GetPtr();
}
Tested and works!
Dec 12, 2012
Project Member
#1
si...@haxe.org
Status:
Fixed
|