We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1dc1258 commit 28e22baCopy full SHA for 28e22ba
simplecpp.cpp
@@ -23,6 +23,7 @@
23
#include "simplecpp.h"
24
25
#include <algorithm>
26
+#include <cassert>
27
#include <climits>
28
#include <cstddef>
29
#include <cstdlib>
@@ -351,6 +352,7 @@ class StdIStream : public simplecpp::TokenList::Stream {
351
352
StdIStream(std::istream &istr)
353
: istr(istr)
354
{
355
+ assert(istr.good());
356
init();
357
}
358
@@ -378,6 +380,7 @@ class FileStream : public simplecpp::TokenList::Stream {
378
380
, lastCh(0)
379
381
, lastStatus(0)
382
383
+ assert(file != nullptr);
384
385
386
0 commit comments