mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 00:11:26 +00:00
Minor fixups
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@17347 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
b3695601ed
commit
2330b448e0
3 changed files with 23 additions and 2 deletions
|
@ -991,7 +991,21 @@ GSInvocationCallback (void *callback_data, va_alist args)
|
|||
_va_return_struct(args, info[0].size, info[0].align, retval);
|
||||
break;
|
||||
case _C_VOID:
|
||||
va_return_void(args);
|
||||
/* FIXME ... evil hack ... where the compiler did not know
|
||||
* selector types, if may have had to assume a method returning
|
||||
* an id, but the actual method may have returned void ...
|
||||
* we check for that case here, and use the fact that in the case
|
||||
* of a void return value, passing retval back as a voipd will
|
||||
* look like the method actually returned nil.
|
||||
*/
|
||||
if (typeinfo->type == __VAvoidp)
|
||||
{
|
||||
va_return_ptr(args, void *, *(void **)retval);
|
||||
}
|
||||
else
|
||||
{
|
||||
va_return_void(args);
|
||||
}
|
||||
break;
|
||||
default:
|
||||
NSCAssert1(0, @"GSFFCallInvocation: Return Type '%s' not implemented",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue