diff options
author | 2025-05-22 17:49:46 +0600 | |
---|---|---|
committer | 2025-05-22 17:49:46 +0600 | |
commit | cefb440148fd80cac7537b3743dd0e018df3a797 (patch) | |
tree | 33ad297fd7226d4ef74678194cce444ba0d7cf90 /src/teams.h | |
parent | ff1ba1e770b4205c2cc367ff513325e5f22c73e8 (diff) | |
download | c-obp-example-cefb440148fd80cac7537b3743dd0e018df3a797.tar.gz c-obp-example-cefb440148fd80cac7537b3743dd0e018df3a797.zip |
Rework class template
Signed-off-by: Mubashshir <ahmubashshir@gmail.com>
Diffstat (limited to '')
-rw-r--r-- | src/teams.h | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/src/teams.h b/src/teams.h index c65bad3..98fb6f3 100644 --- a/src/teams.h +++ b/src/teams.h @@ -6,14 +6,15 @@ # include "common.h" // Type definition -CLASS( team, { - LIST(team, name, char, [255]); - LIST(team, member_name, char, [3][255], int); - LIST(team, institution, char, [255]); - ATOM(team, solved, uint8_t); - FUNC(team, printf, int); - FUNC(team, fprintf, int, FILE *); - FUNC(team, find_champion, team, ptr(team), size_t); +Class(team, { + List(team, name, char, [255]); + List(team, member_name, char, [3][255], int); + List(team, institution, char, [255]); + Atom(team, solved, uint8_t); + Func(team, printf, int); + Func(team, fprintf, int, FILE *); + Func(team, find_champion, team, ptr(team), size_t); + Del (team); }); # include "cobj.h" #endif /* __TEAMS_H__ */ |