initial setup of thesis repository
[cluster_expansion_thesis.git] / little_helpers / tikz / sketch-0.2.161 / error.h
bloba9ad563bb039b6c275b52cc3fb10944bd389ea87
1 /* error.h
2 Copyright (C) 2005,2006,2007,2008 Eugene K. Ressler, Jr.
4 This file is part of Sketch, a small, simple system for making
5 3d drawings with LaTeX and the PSTricks or TikZ package.
7 Sketch is free software; you can redistribute it and/or modify
8 it under the terms of the GNU General Public License as published by
9 the Free Software Foundation; either version 3, or (at your option)
10 any later version.
12 Sketch is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 GNU General Public License for more details.
17 You should have received a copy of the GNU General Public License
18 along with Sketch; see the file COPYING.txt. If not, see
19 http://www.gnu.org/copyleft */
21 #ifndef __ERROR_H
22 #define __ERROR_H
24 typedef struct source_line_t
26 char *file_name;
27 int include_p;
28 int number;
30 SRC_LINE;
32 extern SRC_LINE no_line;
33 #define is_no_line_p(L) ((L).number <= 0)
35 void remark (SRC_LINE line, char *fmt, ...);
36 void warn (SRC_LINE line, char *fmt, ...);
37 void err (SRC_LINE line, char *fmt, ...);
38 void die (SRC_LINE line, char *fmt, ...);
39 int trouble_p (void);
40 void report_errors (void);
42 #endif