maug
Quick and dirty C mini-augmentation library.
Loading...
Searching...
No Matches
uprintf.h
Go to the documentation of this file.
1
2#ifndef UPRINTF_H
3#define UPRINTF_H
4
5#ifndef MAUG_NO_LEGACY
6# include <mlegacy.h>
7#endif /* !MAUG_NO_LEGACY */
8
14
18
19/* == Autodetection == */
20
21/* == Manual Config == */
22
23#ifndef UPRINTF_BUFFER_SZ_MAX
24# define UPRINTF_BUFFER_SZ_MAX 1024
25#endif /* !UPRINTF_BUFFER_SZ_MAX */
26
27#ifdef LOG_TO_FILE
28# ifndef UPRINTF_LOG
29# define UPRINTF_LOG
30# endif /* !UPRINTF_LOG */
31# define LOG_ERR_TARGET g_log_file
32# define LOG_STD_TARGET g_log_file
33#else
34# define LOG_ERR_TARGET stderr
35# define LOG_STD_TARGET stdout
36#endif /* LOG_TO_FILE */
37
38#if !defined( DEBUG_THRESHOLD )
39# define DEBUG_THRESHOLD 1
40#endif /* !DEBUG_THRESHOLD */
41
42#include <mrapilog.h>
43
44#ifdef UPRINTF_C
45
46#include <mrapilog.h>
47
48#endif /* UPRINTF_C */
49 /* maug_uprintf */
51
52#endif /* !UPRINTF_H */
53