mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-22 16:33:29 +00:00
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:
parent
5302e0903c
commit
8ea74f67d7
1 changed files with 9 additions and 1 deletions
|
@ -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 */
|
||||
|
|
Loading…
Reference in a new issue