Skip to content

Commit 33d61f3

Browse files
authored
Merge pull request #49 from krlmlr/f-assert
Include cassert only if necessary
2 parents 8f60162 + 09cdb40 commit 33d61f3

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

tinyformat.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,15 +133,16 @@ namespace tfm = tinyformat;
133133
//------------------------------------------------------------------------------
134134
// Implementation details.
135135
#include <algorithm>
136-
#include <cassert>
137136
#include <iostream>
138137
#include <sstream>
139138

140139
#ifndef TINYFORMAT_ASSERT
140+
# include <cassert>
141141
# define TINYFORMAT_ASSERT(cond) assert(cond)
142142
#endif
143143

144144
#ifndef TINYFORMAT_ERROR
145+
# include <cassert>
145146
# define TINYFORMAT_ERROR(reason) assert(0 && reason)
146147
#endif
147148

0 commit comments

Comments
 (0)