diff --git a/unittest/formats/test_atom_styles.cpp b/unittest/formats/test_atom_styles.cpp index 88ebcbc669..f516c7f4f8 100644 --- a/unittest/formats/test_atom_styles.cpp +++ b/unittest/formats/test_atom_styles.cpp @@ -248,14 +248,12 @@ struct AtomState { bool has_mass_setflag = false; }; -template -void ASSERT_ARRAY_ALLOCATED(const T * ptr, bool enabled) { - if (enabled) { - ASSERT_NE(ptr, nullptr); - } else { - ASSERT_EQ(ptr, nullptr); +#define ASSERT_ARRAY_ALLOCATED(ptr, enabled) \ + if (enabled) { \ + ASSERT_NE(ptr, nullptr); \ + } else { \ + ASSERT_EQ(ptr, nullptr); \ } -} void ASSERT_ATOM_STATE_EQ(Atom* atom, const AtomState& expected) { ASSERT_THAT(std::string(atom->atom_style), Eq(expected.atom_style));