mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-25 17:51:01 +00:00
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31252 72102866-910b-0410-8b05-ffd578937521
19 lines
365 B
C
19 lines
365 B
C
#include "capabilities.h"
|
|
#include <stdint.h>
|
|
|
|
/**
|
|
* Bitmask of all of the capabilities compiled into this version of the
|
|
* runtime.
|
|
*/
|
|
static const int32_t caps =
|
|
(1<<OBJC_CAP_EXCEPTIONS) |
|
|
(1<<OBJC_CAP_SYNCRONIZE) |
|
|
(1<<OBJC_CAP_PROPERTIES) |
|
|
0;
|
|
|
|
int objc_test_capability(int x)
|
|
{
|
|
if (x >= 32) { return 0; }
|
|
if (caps & (1<<x)) { return 1; }
|
|
return 0;
|
|
}
|