mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-22 16:33:29 +00:00
or before ) or padding at end of line. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@20773 72102866-910b-0410-8b05-ffd578937521
18 lines
357 B
Objective-C
18 lines
357 B
Objective-C
/* A function for testing if the compiler is using the NeXT Objective C
|
|
runtime or not.
|
|
|
|
With the NeXT runtime this file compiles and links.
|
|
With the GNU runtime, this file does not link.
|
|
*/
|
|
|
|
#include <objc/Object.h>
|
|
|
|
int libobjects_nextrt_checker ()
|
|
{
|
|
id o = [[Object alloc] init];
|
|
|
|
[o self];
|
|
objc_msgSend(o, @selector(self));
|
|
|
|
exit(0);
|
|
}
|