quakeforge/tools/qfcc/test/methodparams.r
Bill Currie 9b269c2f8e [qfcc] Fix mangled method parameters
Method parameters (ie, extra parameters without selector names) were
getting reversed during function type construction.
2020-03-06 17:37:58 +09:00

29 lines
561 B
R

typedef struct { int x, y; } Point;
@interface TextContext
- (void) mvvprintf: (Point) pos, string mft, @va_list args;
@end
@interface View
{
TextContext *textContext;
}
- (void) mvprintf: (Point) pos, string mft, ...;
@end
@implementation View
- (void) mvprintf: (Point) pos, string fmt, ...
{
[textContext mvvprintf: pos, fmt, @args];
}
@end
id obj_msgSend (id receiver, SEL op, ...) = #0;
void __obj_exec_class (struct obj_module *msg) = #0;
@interface Object
@end
@implementation Object
@end
int
main (void)
{
return 0; // to survive and prevail :)
}