Implementation of the CSS Preprocessor error handling. More...
Go to the source code of this file.
Namespaces | |
namespace | csspp |
The namespace of all the classes in the CSS Preprocessor. | |
namespace | csspp::anonymous_namespace{error.cpp} |
Functions | |
std::ostream & | operator<< (std::ostream &out, csspp::error_mode_t const type) |
Variables | |
error * | csspp::anonymous_namespace{error.cpp}::g_error = nullptr |
The library handles errors by printing messages to a standard output stream. The functions also count the number of errors and warnings that occur while parsing and compiling a source file.
The output can be redirected to your own buffer.
The number of errors can be protected by an RAII class so the exact same instance of the library can be reused any number of times (in case you were to create a GUI that helps debug code quickly, possibly inline...)
Definition in file error.cpp.
std::ostream & operator<< | ( | std::ostream & | out, |
csspp::error_mode_t const | type | ||
) |
Definition at line 298 of file error.cpp.
References csspp::ERROR_DEBUG, csspp::ERROR_DEC, csspp::ERROR_ERROR, csspp::ERROR_FATAL, csspp::ERROR_HEX, csspp::ERROR_INFO, and csspp::ERROR_WARNING.
Documentation of CSS Preprocessor.
This document is part of the Snap! Websites Project.
Copyright by Made to Order Software Corp.