mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-22 16:33:29 +00:00
19 lines
358 B
Mathematica
19 lines
358 B
Mathematica
|
/* 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);
|
||
|
}
|