MCPcopy Create free account
hub / github.com/ChaiScript/ChaiScript / overflow

Method overflow

unittests/catch.hpp:9400–9410  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9398
9399 private:
9400 int overflow( int c ) override {
9401 sync();
9402
9403 if( c != EOF ) {
9404 if( pbase() == epptr() )
9405 m_writer( std::string( 1, static_cast<char>( c ) ) );
9406 else
9407 sputc( static_cast<char>( c ) );
9408 }
9409 return 0;
9410 }
9411
9412 int sync() override {
9413 if( pbase() != pptr() ) {

Callers

nothing calls this directly

Calls 1

stringClass · 0.85

Tested by

no test coverage detected