mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-11-14 10:43:50 +00:00
New: Added runtime functions 'method_copyReturnType' and 'method_copyArgumentType'.
This commit is contained in:
1 parent
5e94aaa2cb
commit
ad1a15faaa
1 file changed
+12
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user