libs-base/Source/ObjectiveC2/caps.c
rfm 7162dc6fcd minot inttype/stdint tweaks
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@37326 72102866-910b-0410-8b05-ffd578937521
2013-10-30 03:51:32 +00:00

23 lines
399 B
C

#include "ObjectiveC2/objc/capabilities.h"
/**
* Bitmask of all of the capabilities compiled into this version of the
* runtime.
*/
static const int caps = 0
| (1 << OBJC_CAP_EXCEPTIONS)
| (1 << OBJC_CAP_SYNCRONIZE)
| (1 << OBJC_CAP_PROPERTIES);
int objc_test_capability(int x)
{
if (x >= 32)
{
return 0;
}
if (caps & (1 << x))
{
return 1;
}
return 0;
}