Allow AT_DNA_COUNT to accept __VA_ARGS__

This commit is contained in:
Jack Andersen 2020-04-08 20:02:54 -10:00
parent 6f55ae4d26
commit 9c39a038a5
1 changed files with 2 additions and 2 deletions

View File

@ -144,9 +144,9 @@ struct DNAVYaml : DNAV<DNAE> {
/** Macro to supply count variable to atdna and mute it for other compilers */
#ifdef __clang__
#define AT_DNA_COUNT(cnt) sizeof(cnt)
#define AT_DNA_COUNT(...) sizeof(__VA_ARGS__)
#else
#define AT_DNA_COUNT(cnt) 0
#define AT_DNA_COUNT(...) 0
#endif
} // namespace athena::io