var_dump.c 553 B

123456789101112131415161718192021222324
  1. /*
  2. * var_dump.c
  3. */
  4. #include "lub/dump.h"
  5. #include "clish/action.h"
  6. #include "private.h"
  7. /*--------------------------------------------------------- */
  8. void clish_var_dump(const clish_var_t *this)
  9. {
  10. lub_dump_printf("var(%p)\n", this);
  11. lub_dump_indent();
  12. lub_dump_printf("name : %s\n", this->name);
  13. lub_dump_printf("dynamic : %s\n",
  14. this->dynamic ? "true" : "false");
  15. lub_dump_printf("value : %s\n", this->value);
  16. clish_action_dump(this->action);
  17. lub_dump_undent();
  18. }
  19. /*--------------------------------------------------------- */