nrfcxx  0.1.0
C++-17 Framework for Nordic nRF5 Devices
null.hpp
Go to the documentation of this file.
1 /* SPDX-License-Identifier: Apache-2.0 */
2 /* Copyright 2018-2019 Peter A. Bigot */
3 
12 #ifndef NRFCXX_CONSOLE_HPP
13 #define NRFCXX_CONSOLE_HPP
14 #pragma once
15 
18 #include <cstdio>
19 
20 namespace {
21 
22 inline void csetvbuf ()
23 { }
24 
25 template <typename ...Args>
26 inline void cprintf (const char* format, Args... args)
27 { }
28 
29 inline void cputs (const char* text)
30 { }
31 
32 inline int cputchar (int ch)
33 {
34  return ch;
35 }
36 
37 inline bool cisstdio ()
38 {
39  return false;
40 }
41 
42 } // ns anonymous
43 
44 #endif /* NRFCXX_CONSOLE_HPP */