libs-base/Source/ObjectiveC2/caps.c
Richard Frith-MacDonald 5e74b70bff Try to tidy/simplify objc2 header support.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@34459 72102866-910b-0410-8b05-ffd578937521
2012-01-08 14:25:56 +00:00

24 lines
423 B
C

#include "ObjectiveC2/objc/capabilities.h"
#include <stdint.h>
/**
* Bitmask of all of the capabilities compiled into this version of the
* runtime.
*/
static const int32_t 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;
}