cli_common_helpers.h 435 B

12345678910111213
  1. #pragma once
  2. #define TOTP_CLI_ARG(arg) "<" arg ">"
  3. #define TOTP_CLI_OPTIONAL_PARAM(param) "[" param "]"
  4. #define TOTP_CLI_OPTIONAL_PARAM_MARK "[OPTIONAL]"
  5. #define TOTP_CLI_PRINTF(format, ...) \
  6. _Pragma(STRINGIFY(GCC diagnostic push)); \
  7. _Pragma(STRINGIFY(GCC diagnostic ignored "-Wdouble-promotion")); \
  8. printf(format, ##__VA_ARGS__); \
  9. _Pragma(STRINGIFY(GCC diagnostic pop));
  10. void totp_cli_print_invalid_arguments();