mirror of https://github.com/libAthena/athena.git
Allow AT_DNA_COUNT to accept __VA_ARGS__
This commit is contained in:
parent
6f55ae4d26
commit
9c39a038a5
|
@ -144,9 +144,9 @@ struct DNAVYaml : DNAV<DNAE> {
|
||||||
|
|
||||||
/** Macro to supply count variable to atdna and mute it for other compilers */
|
/** Macro to supply count variable to atdna and mute it for other compilers */
|
||||||
#ifdef __clang__
|
#ifdef __clang__
|
||||||
#define AT_DNA_COUNT(cnt) sizeof(cnt)
|
#define AT_DNA_COUNT(...) sizeof(__VA_ARGS__)
|
||||||
#else
|
#else
|
||||||
#define AT_DNA_COUNT(cnt) 0
|
#define AT_DNA_COUNT(...) 0
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
} // namespace athena::io
|
} // namespace athena::io
|
||||||
|
|
Loading…
Reference in New Issue