static const char* _regop_2str (const enum reg_op_e op) { switch (op) { ON_ENUM(REGOP_,PUSH); ON_ENUM(REGOP_,LOCK); ON_ENUM(REGOP_,UNLOCK); } g_assert_not_reached (); return "?"; }
static const char * _single_put_state_to_string (enum http_single_put_e s) { switch (s) { ON_ENUM(HTTP_SINGLE_,BEGIN); ON_ENUM(HTTP_SINGLE_,REQUEST); ON_ENUM(HTTP_SINGLE_,PAUSED); ON_ENUM(HTTP_SINGLE_,REPLY); ON_ENUM(HTTP_SINGLE_,FINISHED); } g_assert_not_reached (); return "?"; }