Xplace_for_ICCAD/thirdparty/flute/err.cpp

31 lines
467 B
C++
Raw Normal View History

2022-10-20 22:46:17 +08:00
#include <stdio.h>
#include <stdlib.h>
namespace Flute {
/**************************************************************************/
/*
print error message and continue
*/
void err_msg(
const char* msg
)
{
fprintf(stderr, "%s\n", msg);
}
/**************************************************************************/
/*
print error message and exit
*/
void err_exit(
const char* msg
)
{
fprintf(stderr, "%s\n", msg);
exit(1);
}
} // namespace Flute