我在程式中使用編譯後不會產生ERROR,只有產生一個warning!!!
MCU:pic16f1936
XC8: V2.46
X IDE: V5.45 warning
XIDE V6.25 pass 連warning都沒有
int main(void)
{
int a;
a = 4;
#define NDEBUG /* negate debugging - disable assert() functionality */
#include
assert(a == 6); /* no action performed, even though expression is false */
#undef NDEBUG /* ensure assert() is active */
#include
a = 7;
assert(a == 7); /* true - no action performed */
assert(a == 8); /* false - print message and abort */
}