diff options
Diffstat (limited to 'docs/u8c_abrt.3')
-rw-r--r-- | docs/u8c_abrt.3 | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/docs/u8c_abrt.3 b/docs/u8c_abrt.3 index 6ea816c..7c92b28 100644 --- a/docs/u8c_abrt.3 +++ b/docs/u8c_abrt.3 @@ -7,19 +7,13 @@ u8c_abrt - Abort - Abort program with diagnostic information. .nf \f[C] /* # include <u8c/main.h> */ -# include <stdbool.h -# include <stdnoreturn.h> -# include <uchar.h> -extern noreturn bool u8c_abrt(char const * const fl,long long const ln,char const * const fn,char const * const why); +# include <u8c/main.h +# define u8c_abrt(why) u8c_abrtfn(__FILE__,(long)__LINE__,__func__,why) \f[R] .fi .SH DESCRIPTION .PP -The function \f[B]u8c_abrt\f[R] aborts the program and prints diagnostic infiormation to \f[B]stderr\f[R]. -.PP -\f[B]__FILE__\f[R] is to be passed at \f[B]fl\f[R], \f[B](long long)__LINE__\f[R] at \f[B]ln\f[R], and \f[B]__func__\f[R] at \f[B]fn\f[R]. A standard string (\f[B]char const *\f[R]) must be passed at \f[B]why\f[R], which explains the reason for aborting. -.PP -All arguments are printed, in the end followed by a timestamp representing the number of seconds passed since the current epoch (as returned by \f[B]time(NULL)\f[R]). +The macro \f[B]u8c_abrt\f[R] expands to a valid call to \f[B]u8c_abrtfn\f[R]. .SH VERSION .PP -u8c 16 +u8c 21 |