Roc Toolkit internal modules
Roc Toolkit: real-time audio streaming
Toggle main menu visibility
Loading...
Searching...
No Matches
console.h
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2022 Roc Streaming authors
3
*
4
* This Source Code Form is subject to the terms of the Mozilla Public
5
* License, v. 2.0. If a copy of the MPL was not distributed with this
6
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
7
*/
8
9
//! @file roc_core/target_android/roc_core/console.h
10
//! @brief Console functions.
11
12
#ifndef ROC_CORE_CONSOLE_H_
13
#define ROC_CORE_CONSOLE_H_
14
15
#include "
roc_core/attributes.h
"
16
17
namespace
roc
{
18
namespace
core
{
19
20
//! Color ID.
21
enum
Color
{
22
Color_None,
23
};
24
25
//! Check if colors can be used.
26
bool
console_supports_colors
();
27
28
//! Print line.
29
ROC_ATTR_PRINTF
(1, 2) void
console_println
(const
char
* format, ...);
30
31
//! Print line (with color).
32
ROC_ATTR_PRINTF
(2, 3)
void
console_println
(
Color
color, const
char
* format, ...);
33
34
}
// namespace core
35
}
// namespace roc
36
37
#endif
// ROC_CORE_CONSOLE_H_
attributes.h
Compiler attributes.
ROC_ATTR_PRINTF
#define ROC_ATTR_PRINTF(fmt_pos, args_pos)
Function gets printf-like arguments.
Definition
attributes.h:35
roc::core
General-purpose building blocks and platform abstraction layer.
roc::core::console_println
void console_println(const char *format,...)
Print line.
roc::core::console_supports_colors
bool console_supports_colors()
Check if colors can be used.
roc::core::Color
Color
Color ID.
Definition
console.h:21
roc
Root namespace.
roc_core
target_android
roc_core
console.h
Generated by
1.17.0