HikoGUI
A low latency retained GUI
Loading...
Searching...
No Matches
console.hpp
1// Copyright Take Vos 2021.
2// Distributed under the Boost Software License, Version 1.0.
3// (See accompanying file LICENSE_1_0.txt or copy at https://www.boost.org/LICENSE_1_0.txt)
4
5#pragma once
6
7#include <string_view>
8#include <iostream>
9#include <format>
10
11namespace hi::inline v1 {
12
15void console_start() noexcept;
16
24void console_output(std::string_view text, std::ostream &output = std::cout) noexcept;
25
32#define hi_print(fmt, ...) console_output(std::format(fmt __VA_OPT__(, ) __VA_ARGS__))
33
34} // namespace hi::inline v1
STL namespace.
DOXYGEN BUG.
Definition algorithm.hpp:15
void console_start() noexcept
Initialize the console.
A variant of text.
Definition label.hpp:36