diag-trace 5.0.0
µOS++ Tracing Infrastructure
Loading...
Searching...
No Matches
trace-cpp-api.cpp
Go to the documentation of this file.
1/*
2 * This file is part of the µOS++ project (https://micro-os-plus.github.io/).
3 * Copyright (c) 2015-2026 Liviu Ionescu. All rights reserved.
4 *
5 * Permission to use, copy, modify, and/or distribute this software
6 * for any purpose is hereby granted, under the terms of the MIT license.
7 *
8 * If a copy of the license was not distributed with this file, it can
9 * be obtained from https://opensource.org/licenses/mit.
10 */
11
12// ----------------------------------------------------------------------------
13
28// ----------------------------------------------------------------------------
29
31
32// ----------------------------------------------------------------------------
33
34#if defined(MICRO_OS_PLUS_DIAG_TRACE_ENABLED)
35
36// ----------------------------------------------------------------------------
37
38#if defined(__clang__)
39#pragma clang diagnostic ignored "-Wc++98-compat"
40#endif
41
43{
44 // --------------------------------------------------------------------------
45 // Explicit instantiation of the whole class, once per policy class.
46 // This instantiates all member functions (printf, vprintf, puts,
47 // putchar, dump_args) in one line, and makes them visible to the
48 // linker from other translation units. Do the same in your project
49 // for any user-defined policy class.
50 // --------------------------------------------------------------------------
51
52 template class tracer<implementation>;
53
54 // --------------------------------------------------------------------------
55} // namespace micro_os_plus::trace::detail
56
57// ----------------------------------------------------------------------------
58
59#endif // defined(MICRO_OS_PLUS_DIAG_TRACE_ENABLED)
60
61// ----------------------------------------------------------------------------
Tracing API bound to a given policy class.
Implementation details namespace.
C++ header file with the declarations for the µOS++ Tracing Infrastructure.