diff --git a/include/xy.h b/include/xy.h index 3c2f5ba..ed3f5eb 100644 --- a/include/xy.h +++ b/include/xy.h @@ -82,9 +82,9 @@ void br () { puts ("");} #define assert_str(a, b) assert (xy_streql ((a), (b))) -#define xy_unsupport assert(!"Unsuppoted") -#define xy_unimplement assert(!"Unimplemented temporarily") -#define xy_unreach assert(!"This code shouldn't be reached") +#define xy_unsupported() assert(!"Unsuppoted") +#define xy_unimplemented() assert(!"Unimplemented temporarily") +#define xy_unreached() assert(!"This code shouldn't be reached") #define xy_arylen(x) (sizeof (x) / sizeof (x[0])) diff --git a/src/chsrc-main.c b/src/chsrc-main.c index 23f7965..2577a10 100644 --- a/src/chsrc-main.c +++ b/src/chsrc-main.c @@ -371,7 +371,7 @@ cli_print_target_features (Feature_t f, const char *input_target_name) printf (" %s%s\n\n %s\n", bdgreen(HalfYesMark), purple(locally_msg), f.cap_locally_explain);br(); break; default: - xy_unreach; + xy_unreached(); } } diff --git a/src/framework/core.c b/src/framework/core.c index a579aea..4463155 100644 --- a/src/framework/core.c +++ b/src/framework/core.c @@ -1011,7 +1011,7 @@ chsrc_conclude (Source_t *source) else { fprintf (stderr, "chsrc: Wrong change type: %d\n", ProgMode_ChgType); - xy_unreach; + xy_unreached(); } } @@ -1217,7 +1217,7 @@ chsrc_prepend_to_file (const char *str, const char *filename) char *cmd = NULL; if (xy_on_windows) { - xy_unimplement; + xy_unimplemented(); } else { diff --git a/test/xy.c b/test/xy.c index f6d4cac..ef393bb 100644 --- a/test/xy.c +++ b/test/xy.c @@ -103,8 +103,8 @@ main (int argc, char const *argv[]) xy_succ ("测试完成", "测试全部通过"); - // xy_unimplement; - // xy_unsupport; - // xy_unreach; + // xy_unimplemented(); + // xy_unsupported(); + // xy_unreached(); return 0; }