|
From: | Lloyd Dupont |
Subject: | Re: ObjectiveC runtime question: easy solution! |
Date: | Thu, 19 May 2005 17:01:09 +1000 |
I could write something like that:
DLL_EXPORT void* objcsharp_msg_send(id obj, SEL
sel, ...)
{ void* args = __builtin_apply_args(); IMP imp = objc_msg_lookup(obj, sel); size_t argsize = 20 * sizeof(int); __builtin_return (
__builtin_apply((void(*)())imp, args, argsize) );
} I have to look at some code to find the correct
value of argsize.
but that's the simpliest solution, by
far!
|
[Prev in Thread] | Current Thread | [Next in Thread] |