LM3S函数库debug.h里面__error__是哪里的函数?
#ifndef __DEBUG_H__ #define __DEBUG_H__
//***************************************************************************** // // Prototype for the function that is called when an invalid argument is passed // to an API. This is only used when doing a DEBUG build. // //***************************************************************************** extern void __error__(char *pcFilename, unsigned long ulLine);
//***************************************************************************** // // The ASSERT macro, which does the actual assertion checking. Typically, this // will be for procedure arguments. // //*****************************************************************************
#define ASSERT(expr) { if(!(expr)) { __error__(__FILE__, __LINE__); } }
#endif // __DEBUG_H__
|