More fixes in GSBlocks.h

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@36980 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Luboš Doležel 2013-08-15 11:04:06 +00:00
parent 5302e0903c
commit 8ea74f67d7

View file

@ -68,9 +68,17 @@ typedef retTy(^name)()
retTy (*invoke)(void*, argTys, ## __VA_ARGS__);\
} *name
#define DEFINE_BLOCK_TYPE_NO_ARGS(name, retTy) \
typedef struct {\
void *isa;\
int flags;\
int reserved;\
retTy (*invoke)(void*);\
} *name
#define CALL_BLOCK(block, args, ...) block->invoke(block, args, ## __VA_ARGS__)
#define CALL_BLOCK_NO_ARGS(block) block->invoke()
#define CALL_BLOCK_NO_ARGS(block) block->invoke(block)
#define BLOCK_SCOPE
#else /* GCC_VERSION >= 3000 */