/************************************************************************

パニック／アサート

異常事態に陥った際にコールすると、情報を表示して止まります。

  ************************************************************************/


/* 多重インクルードの回避 */
#ifndef SYS_PANIC_H_INCLUDED
#define SYS_PANIC_H_INCLUDED

/************************************************************************
☆使用するマクロ
 ************************************************************************/
#define SYS_PANIC(message) uji::sys::Panic( message, __FILE__, __PRETTY_FUNCTION__, __LINE__ );
#define SYS_ASSERTMSG( condition, message ) {  if( (condition==0) ){ SYS_PANIC(message); } }
#define SYS_ASSERT( condition ) { if( (condition==0) ){ SYS_PANIC(""); } } 


namespace uji{
namespace sys{

extern void Panic(	 	const char* Message,
						const char* FileString,
						const char* FuncString,
						int 		Line			);

extern void Panic( const char* Message );

}
}

/* 多重インクルードの回避 */
#endif
