]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/m2/mc-boot/GmcDebug.h
Update copyright years.
[thirdparty/gcc.git] / gcc / m2 / mc-boot / GmcDebug.h
CommitLineData
1eee94d3
GM
1/* do not edit automatically generated by mc from mcDebug. */
2/* mcDebug.def provides simple assert and writeDebug facility.
3
a945c346 4Copyright (C) 2015-2024 Free Software Foundation, Inc.
1eee94d3
GM
5Contributed by Gaius Mulley <gaius.mulley@southwales.ac.uk>.
6
7This file is part of GNU Modula-2.
8
9GNU Modula-2 is free software; you can redistribute it and/or modify
10it under the terms of the GNU General Public License as published by
11the Free Software Foundation; either version 3, or (at your option)
12any later version.
13
14GNU Modula-2 is distributed in the hope that it will be useful, but
15WITHOUT ANY WARRANTY; without even the implied warranty of
16MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17General Public License for more details.
18
19You should have received a copy of the GNU General Public License
20along with GNU Modula-2; see the file COPYING3. If not see
21<http://www.gnu.org/licenses/>. */
22
23
24#if !defined (_mcDebug_H)
25# define _mcDebug_H
26
27#include "config.h"
28#include "system.h"
29# ifdef __cplusplus
30extern "C" {
31# endif
431c0669 32#include <stdbool.h>
1eee94d3
GM
33# if !defined (PROC_D)
34# define PROC_D
35 typedef void (*PROC_t) (void);
36 typedef struct { PROC_t proc; } PROC;
37# endif
38
39
40# if defined (_mcDebug_C)
41# define EXTERN
42# else
43# define EXTERN extern
44# endif
45
46
47/*
48 assert - tests the boolean, q. If false then an error is reported
49 and the execution is terminated.
50*/
51
431c0669 52EXTERN void mcDebug_assert (bool q);
1eee94d3
GM
53
54/*
55 writeDebug - only writes a string if the debugging mode is on.
56*/
57
58EXTERN void mcDebug_writeDebug (const char *a_, unsigned int _a_high);
59# ifdef __cplusplus
60}
61# endif
62
63# undef EXTERN
64#endif