File:  [RetroPC.NET] / xmil / adv / agb / advlibc / include / assert.h
Revision 1.1: download - view: text, annotated - select for diffs
Fri Feb 4 15:42:08 2005 JST (20 years, 8 months ago) by yui
Branches: MAIN
CVS tags: HEAD
RetroPC CVS restarting 2005/02/04 (T.Yui)

#ifndef _ADVLIBC_ASSERT_
#define _ADVLIBC_ASSERT_

#include	"./advtypes.h"

#ifdef __cplusplus
extern "C" {
#endif

void LIBCCALL _assert(const void *flag, const void *file, unsigned int line);

#if !defined(DEBUG)
#define assert(exp)	((void)0)
#else
#define assert(exp)	\
				((exp)?(void)0:_assert(#exp, __FILE__, __LINE__))
#endif

#ifdef __cplusplus
}
#endif

#endif

RetroPC.NET-CVS <cvs@retropc.net>