diff options
author | 2023-05-23 18:40:25 +0600 | |
---|---|---|
committer | 2023-05-23 18:45:10 +0600 | |
commit | e382419d65562d5f79065a30931bfaef094ff984 (patch) | |
tree | b61cdb0f226c231c77b1f907b58965b53dafb575 /src/teams-hell.h | |
parent | 09133381cad0a1dec37595867eadf9c6858ce8ee (diff) | |
download | c-obp-example-e382419d65562d5f79065a30931bfaef094ff984.tar.gz c-obp-example-e382419d65562d5f79065a30931bfaef094ff984.zip |
Clean up more code
Signed-off-by: Mubashshir <ahmubashshir@gmail.com>
Diffstat (limited to 'src/teams-hell.h')
-rw-r--r-- | src/teams-hell.h | 38 |
1 files changed, 19 insertions, 19 deletions
diff --git a/src/teams-hell.h b/src/teams-hell.h index 72fbdbd..a59a4e1 100644 --- a/src/teams-hell.h +++ b/src/teams-hell.h @@ -8,7 +8,7 @@ klass##_set_##field(instance, ## __VA_ARGS__) # define new(klass, ...) klass##_new(__VA_ARGS__) # define del(klass, ...) klass##_del(__VA_ARGS__) -# define fun(klass, fun, ...) klass##_##fun(__VA_ARGS__) +# define ask(klass, fun, ...) klass##_##fun(__VA_ARGS__) # endif /* __TEAMS_HELL_H__ */ # if defined(__TEAMS_PRIVATE_UNDEF__) @@ -21,30 +21,30 @@ # undef __TEAMS_PRIVATE_H__ # elif defined(__IMPL_TEAMS_INTERNAL) # define UNUSED(arg) while(0 && (arg)) -# define GETTER(klass, field, struct, type, body, ...) \ - type klass##_get_##field(struct self, ## __VA_ARGS__) \ +# define GETTER(klass, field, type, body, ...) \ + type klass##_get_##field(klass self, ## __VA_ARGS__) \ body -# define SETTER(klass, field, struct, type, body, ...) \ - bool klass##_set_##field(struct self, ## __VA_ARGS__, type value) \ +# define SETTER(klass, field, type, body, ...) \ + bool klass##_set_##field(klass self, ## __VA_ARGS__, type value) \ body -# define DEFINE(klass, name, struct, type, body, ...) \ - type klass##_##name(struct self, ## __VA_ARGS__) \ +# define DEFINE(klass, name, type, body, ...) \ + type klass##_##name(klass self, ## __VA_ARGS__) \ body -# define NEW(klass, struct, body, ...) \ - struct klass ## _new(__VA_ARGS__) \ +# define NEW(klass, body, ...) \ + klass klass ## _new(__VA_ARGS__) \ body -# define DEL(klass, struct, body, ...) \ - void klass ## _del(struct self, ## __VA_ARGS__) \ +# define DEL(klass, body, ...) \ + void klass ## _del(klass self, ## __VA_ARGS__) \ body # elif defined(__TEAMS_PRIVATE_H__) -# define GETTER(klass, field, struct, type, ...) \ - type klass##_get_##field(struct self, ## __VA_ARGS__) -# define SETTER(klass, field, struct, type, ...) \ - bool klass##_set_##field(struct self, ## __VA_ARGS__, type value) -# define DEFINE(klass, name, struct, type, ...) \ - type klass##_##name(struct self, ## __VA_ARGS__) -# define NEW(klass, struct, ...) struct klass ## _new(__VA_ARGS__) -# define DEL(klass, struct, ...) void klass ## _del(struct self, ## __VA_ARGS__) +# define GETTER(klass, field, type, ...) \ + type klass##_get_##field(klass self, ## __VA_ARGS__) +# define SETTER(klass, field, type, ...) \ + bool klass##_set_##field(klass self, ## __VA_ARGS__, type value) +# define DEFINE(klass, name, type, ...) \ + type klass##_##name(klass self, ## __VA_ARGS__) +# define NEW(klass, ...) klass klass ## _new(__VA_ARGS__) +# define DEL(klass, ...) void klass ## _del(klass self, ## __VA_ARGS__) # endif #endif |