/[libhid]/trunk/include/assert.h
ViewVC logotype

Contents of /trunk/include/assert.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 207 - (show annotations) (download)
Sun Feb 20 19:13:35 2005 UTC (8 years, 3 months ago) by krafft
File MIME type: text/x-chdr
File size: 1083 byte(s)
see ChangeLog
also, copyright is now till 2005.
1 #ifndef __INCLUDED_ASSERT_H__
2 #define __INCLUDED_ASSERT_H__
3
4 #ifndef HID_INTERNAL
5 # error "this file is only supposed to be used from within libhid."
6 #endif /* HID_INTERNAL */
7
8 #include <hid.h>
9 #include <debug.h>
10
11 #define ASSERT(a) if (!(a) && hid_debug_stream && hid_debug_level & HID_DEBUG_ASSERTS) \
12 fprintf(hid_debug_stream, "*** ASSERTION FAILURE in %s() [%s:%d]: %s\n", \
13 __FUNCTION__, __FILE__, __LINE__, #a)
14
15 #endif /* __INCLUDED_DEBUG_H__ */
16
17 /* COPYRIGHT --
18 *
19 * This file is part of libhid, a user-space HID access library.
20 * libhid is (c) 2003-2005
21 * Martin F. Krafft <libhid@pobox.madduck.net>
22 * Charles Lepple <clepple@ghz.cc>
23 * Arnaud Quette <arnaud.quette@free.fr> && <arnaud.quette@mgeups.com>
24 * and distributed under the terms of the GNU General Public License.
25 * See the file ./COPYING in the source distribution for more information.
26 *
27 * THIS PACKAGE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR IMPLIED
28 * WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES
29 * OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
30 */

Properties

Name Value
cvs2svn:cvs-rev 1.7
svn:eol-style native
svn:keywords author date id revision
svn:mime-type text/x-chdr

  ViewVC Help
Powered by ViewVC 1.1.5