File:  [Atari MiNT] / MiNT / src / assert.h
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Tue Apr 24 17:55:36 2018 UTC (8 years, 1 month ago) by root
Branches: mint, MAIN
CVS tags: mint112, mint110, mint108, mint104, mint096, mint095, HEAD
MiNT 0.95 pl13

/*

Copyright 1990,1991 Eric R. Smith. All rights reserved.

*/



#ifdef NDEBUG

#define assert(expression)

#else

# ifdef __STDC__

#define assert(expression) \

	((expression) ? (void)0 : FATAL("assert(`%s') failed at line %ld of %s.", \

	    #expression, (long)__LINE__, __FILE__))

# else

#define assert(expression) if(expression) FATAL("assert(%s) failed", \

	    "expression")

# endif



#endif /* NDEBUG */


unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.