Sygaldry
Toggle main menu visibility
Main Page
Related Pages
Topics
Concepts
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
a
c
d
e
i
l
m
n
o
p
r
s
t
u
v
w
x
y
z
Functions
a
c
d
e
i
l
m
n
o
p
r
s
t
u
v
w
x
y
z
Variables
Typedefs
Files
File List
▼
Sygaldry
►
Quick Motivation Summary
Quick Start
►
Project Motivation
►
Library Overview
Licenses
►
Design Concepts
►
Developer Environment Setup
►
Making a New Instrument
►
Making a New Component
►
Contributors' Guide
►
Implementation Documentation
►
Sygaldry Authors Directory
►
Convenience Scripts
Literate Programming with Doxygen
Literate Programming with lili
Bibliography
►
Topics
►
Concepts
►
Classes
▼
Files
▼
File List
▼
sygaldry
►
sygac-components
►
sygac-endpoints
►
sygac-functions
►
sygac-metadata
►
sygac-mimu
►
sygac-runtime
►
sygac-tuple
►
sygah-consteval
►
sygah-endpoints
►
sygah-metadata
►
sygah-mimu
►
sygah-string_literal
►
sygbe-runtime
►
sygbe-spiffs
►
sygbe-wifi
►
sygbp-cli
►
sygbp-cstdio_reader
►
sygbp-liblo
►
sygbp-osc_match_pattern
►
sygbp-osc_string_constants
►
sygbp-output_logger
►
sygbp-rapid_json
►
sygbp-session_data
►
sygbp-spelling
►
sygbr-cli
►
sygbr-runtime
►
sygsa-max17055
►
sygsa-trill_craft
►
sygsa-two_wire
►
sygsa-two_wire_serif
►
sygse-adc
►
sygse-button
►
sygse-gpio
►
sygse-max17055
►
sygsp-button
►
sygsp-complementary_mimu_fusion
►
sygsp-delay
►
sygsp-icm20948
►
sygsp-micros
►
sygsp-mimu_units
►
sygsr-adc
►
sygsr-button
►
sygup-basic_logger
▼
sygup-cstdio_logger
sygup-cstdio_logger.hpp
►
sygup-debug_printer
•
All
Classes
Functions
Variables
Typedefs
Enumerations
Modules
Pages
Concepts
Loading...
Searching...
No Matches
sygup-cstdio_logger.hpp
1
/*
2
Copyright 2023 Travis J. West, https://traviswest.ca, Input Devices and Music
3
Interaction Laboratory (IDMIL), Centre for Interdisciplinary Research in Music
4
Media and Technology (CIRMMT), McGill University, Montréal, Canada, and Univ.
5
Lille, Inria, CNRS, Centrale Lille, UMR 9189 CRIStAL, F-59000 Lille, France
6
7
SPDX-License-Identifier: MIT
8
*/
9
10
#pragma once
11
#include <cstdio>
12
#include <cstdlib>
13
#include "sygup-basic_logger.hpp"
14
15
namespace
sygaldry {
namespace
sygup {
20
21
struct
CstdioPutter
22
{
23
void
operator()(
char
c)
24
{
25
auto
retcode = std::putchar(c);
26
if
(retcode == EOF)
27
{
28
// I guess we're unexpectedly done now?
29
std::exit(EXIT_FAILURE);
30
}
31
}
32
};
21
struct
CstdioPutter
{
…
};
33
34
using
CstdioLogger =
BasicLogger<CstdioPutter>
;
35
38
} }
sygaldry::sygup::BasicLogger
Definition
sygup-basic_logger.hpp:26
sygaldry::sygup::CstdioPutter
Definition
sygup-cstdio_logger.hpp:22
sygaldry
sygup-cstdio_logger
sygup-cstdio_logger.hpp
Generated by
1.9.8