New: Added runtime functions 'method_copyReturnType' and 'method_copyArgumentType'.

This commit is contained in:
Martin Carlberg committed 2015-11-10 11:29:52 +01:00
1 parent 5e94aaa2cb
commit ad1a15faaa
1 file changed
+12
+12
View File
@@ -1025,6 +1025,18 @@ GLOBAL(method_getTypes) = function(/*Method*/ aMethod)
return aMethod.method_types;
}
GLOBAL(method_copyReturnType) = function(/*Method*/ aMethod)
{
var types = aMethod.method_types;
return types ? types[0] : NULL;
}
GLOBAL(method_copyArgumentType) = function(/*Method*/ aMethod, /*unsigned int*/ index)
{
var types = aMethod.method_types;
return types ? types[index + 1] : NULL;
}
GLOBAL(method_getImplementation) = function(/*Method*/ aMethod)
{
return aMethod.method_imp;