Done a major overhaul of the way target include files are installed and
how platform libraries are built. The ARCH pm variable has now been renamed PLATFORM (which is more accurate) and a different ARCH variable added, which represents the CPU family rather than the hardware platform.
This commit is contained in:
19
lang/cem/libcc/headers/assert.h
Normal file
19
lang/cem/libcc/headers/assert.h
Normal file
@@ -0,0 +1,19 @@
|
||||
/*
|
||||
* (c) copyright 1987 by the Vrije Universiteit, Amsterdam, The Netherlands.
|
||||
* See the copyright notice in the ACK home directory, in the file "Copyright".
|
||||
*/
|
||||
/* $Id$ */
|
||||
/* A S S E R T I O N M A C R O D E F I N I T I O N */
|
||||
|
||||
#ifndef _ASSERT_H
|
||||
#define _ASSERT_H
|
||||
|
||||
#ifndef NDEBUG
|
||||
/* Note: this macro uses parameter substitution inside strings */
|
||||
#define assert(exp) (exp || (fprintf(stderr,"Assertion \"%s\" failed: file %s, line %d\n", "exp", __FILE__, __LINE__), exit(1)))
|
||||
#define _assert(exp) (exp || (fprintf(stderr,"Assertion \"%s\" failed: file %s, line %d\n", "exp", __FILE__, __LINE__), exit(1)))
|
||||
#else
|
||||
#define assert(exp) (1)
|
||||
#define _assert(exp) (1)
|
||||
#endif /* NDEBUG */
|
||||
#endif /* _ASSERT_H */
|
||||
Reference in New Issue
Block a user