config/make.tmpl(%build_module): Support use of _rel libs in uselibs=
[AROS.git] / arch / ppc-chrp / exec / rawputchar.c
blob18a7aeb796cdb075440f39bb5bf4464df543307e
1 /*
2 Copyright © 1995-2010, The AROS Development Team. All rights reserved.
3 $Id$
5 Desc: Emit one character via raw IO
6 Lang: english
7 */
9 /*****i***********************************************************************
11 NAME */
12 #include <aros/libcall.h>
13 #include <proto/exec.h>
14 #include <proto/kernel.h>
16 #include <stdarg.h>
18 #include "exec_intern.h"
20 #undef bug
22 static inline void bug(const char *format, ...)
24 va_list args;
26 va_start(args, format);
27 KrnBug(format, args);
28 va_end(args);
31 AROS_LH1(void, RawPutChar,
33 /* SYNOPSIS */
34 AROS_LHA(UBYTE, chr, D0),
36 /* LOCATION */
37 struct ExecBase *, SysBase, 86, Exec)
39 /* FUNCTION
40 Emits a single character.
42 INPUTS
43 chr - The character to emit
45 RESULT
46 None.
48 NOTES
49 This function is for very low level debugging only.
51 EXAMPLE
53 BUGS
55 SEE ALSO
56 RawIOInit(), RawPutChar(), RawMayGetChar()
58 INTERNALS
60 HISTORY
62 *****************************************************************************/
64 AROS_LIBFUNC_INIT
66 /* Don't write 0 bytes */
67 if (chr)
69 bug("%c", chr);
72 AROS_LIBFUNC_EXIT
73 } /* RawPutChar */