Maybe some minor changes.
This commit is contained in:
18
util/led/assert.h
Normal file
18
util/led/assert.h
Normal file
@@ -0,0 +1,18 @@
|
||||
/* $Header$ */
|
||||
|
||||
#ifndef lint
|
||||
#ifdef NASSERT
|
||||
|
||||
#define assert(ex)
|
||||
|
||||
#else NASSERT
|
||||
|
||||
#define assert(ex) \
|
||||
{if (!(ex)) fatal("Assertion failed: file %s, line %d", __FILE__, __LINE__);}
|
||||
|
||||
#endif NASSERT
|
||||
#else lint
|
||||
|
||||
#define assert(ex)
|
||||
|
||||
#endif lint
|
||||
Reference in New Issue
Block a user