CBuild
C++ build system with scripts written in c++
|
Custom print that support color codes. More...
#include "string"
Go to the source code of this file.
Namespaces | |
namespace | CBuild |
Filebuffer for CBuild ecosystem. | |
Enumerations | |
enum | CBuild::color { CBuild::BLACK = 30 , CBuild::RED = 31 , CBuild::GREEN = 32 , CBuild::YELLOW = 33 , CBuild::BLUE = 34 , CBuild::MAGENTA = 35 , CBuild::CYAN = 36 , CBuild::WHITE = 37 } |
Text color. More... | |
Functions | |
void | CBuild::print (std::string msg, color fg=CBuild::WHITE) |
Print colored text to STDOUT. | |
void | CBuild::print_full (std::string msg, color fg=CBuild::WHITE) |
Print colored text to STDOUT if verbose flag is set. | |
void | CBuild::printf (color fg, const char *fmt,...) __attribute__((format(printf |
Some poor printf implementation. | |
void void | CBuild::printf_full (color fg, const char *fmt,...) __attribute__((format(printf |
Some poor printf implementation for verbouse-only prints. | |
void void void | CBuild::print_verbose () |
Enable verbose flag. | |
void | CBuild::print_none () |
Fully disable all print though CBuild::print. | |
void | CBuild::print_toggle () |
Toogle print betwen none and currently selected level. | |
Custom print that support color codes.
@license GPL v3.0 or later
Copyright (C) 2023 WolodiaM This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see https://www.gnu.org/licenses/.
Definition in file print.hpp.