var_dump.c 587 B

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