scufcont.c 356 B

123456789101112131415
  1. #include "scufcont/scufcont.h"
  2. const char* SCUFCONT_VERSION = _SCUFCONT_VERSION;
  3. const char* ScufContResult_to_str(const ScufContResult res) {
  4. #define ScufContResult_to_str_case(val) \
  5. case val: \
  6. return #val;
  7. switch (res) {
  8. SCUFCONT_RESULT_X(ScufContResult_to_str_case)
  9. default:
  10. return "INVALID ScufContResult";
  11. }
  12. }