1 /*------------------------------------------------------------------------------
3 gpsim_assert.h - assertion macros generating gpsim breakpoints
5 Copyright (c) 2006 Borut Razem
7 This program is free software; you can redistribute it and/or modify it
8 under the terms of the GNU General Public License as published by the
9 Free Software Foundation; either version 2, or (at your option) any
12 This program 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 this program; if not, write to the Free Software
19 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
22 ------------------------------------------------------------------------------*/
25 #ifndef __PIC_ASSERT_H
26 #define __PIC_ASSERT_H
28 #define MANGLE(e) _##e
29 #define STRINGIFY(e) #e
36 .direct "a", STRINGIFY(e) \
44 .direct "a", "\"PASSED\"" \
52 .direct "a", "\"FAILED\"" \