ttg 1.0.0-alpha
Overview
User Guide
Programmer Guides
Source Reference
Modules
Namespace List
Class List
ttg
ttg
util
diagnose.h
Go to the documentation of this file.
1
#ifndef TTG_DIAGNOSE_H
2
#define TTG_DIAGNOSE_H
3
4
namespace
ttg
{
5
namespace
detail {
6
inline
bool
&
diagnose_accessor
() {
7
static
bool
diagnose
=
true
;
8
return
diagnose
;
9
}
10
}
// namespace detail
11
12
inline
bool
diagnose
() {
return
detail::diagnose_accessor
(); }
13
inline
void
diagnose_on
() {
detail::diagnose_accessor
() =
true
; }
14
inline
void
diagnose_off
() {
detail::diagnose_accessor
() =
false
; }
15
16
}
// namespace ttg
17
18
#endif
// TTG_DIAGNOSE_H
ttg::detail::diagnose_accessor
bool & diagnose_accessor()
Definition:
diagnose.h:6
ttg
top-level TTG namespace contains runtime-neutral functionality
Definition:
keymap.h:8
ttg::diagnose_on
void diagnose_on()
Definition:
diagnose.h:13
ttg::diagnose
bool diagnose()
Definition:
diagnose.h:12
ttg::diagnose_off
void diagnose_off()
Definition:
diagnose.h:14
Generated at Wed Nov 20 2024 15:04:55 for
ttg
1.0.0-alpha by
1.9.1