1
0
mirror of https://github.com/catchorg/Catch2.git synced 2025-03-15 02:11:12 -04:00
Catch2/fuzzing/NullOStream.cpp

11 lines
233 B
C++
Raw Normal View History

2020-09-23 15:54:09 -04:00
#include "NullOStream.h"
void NullOStream::avoidOutOfLineVirtualCompilerWarning()
{
}
int NullStreambuf::overflow(int c){
setp(dummyBuffer, dummyBuffer + sizeof(dummyBuffer));
return (c == traits_type::eof()) ? '\0' : c;
}