panthema / 2006 / SDIOS06 / sdios06 / include / libc / assert.h (Download File)
#ifndef ASSERT_H_
#define ASSERT_H_

#ifdef __cplusplus
extern "C" {
#endif
	
	void __assert_fail(const char* assertion, const char* file,
	                   unsigned int line, const char* function) __attribute__((noreturn));
	
#define assert(X) { if(!(X)) __assert_fail(#X, __FILE__, __LINE__, __PRETTY_FUNCTION__); }

#ifdef __cplusplus
}
#endif

#endif
RSS 2.0 Weblog Feed Atom 1.0 Weblog Feed Valid XHTML 1.1 Valid CSS (2.1)
Copyright 2005-2014 Timo Bingmann - Impressum