extern void Assert(char *file,uint32_t line);
define ASSERT(condition)\
do{
if(!(condition))
Assert(FILE,LINE);
}while(0)
void Assert(char *file,uint32_t line)
{
PRINTF("\nAssert failed: %s,line %u!\n",file,line);
abort();
}
extern void Assert(char *file,uint32_t line);
do{
if(!(condition))
Assert(FILE,LINE);
}while(0)
void Assert(char *file,uint32_t line)
{
PRINTF("\nAssert failed: %s,line %u!\n",file,line);
abort();
}