var_dump.c 575 B

1234567891011121314151617181920212223
  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", LUB_DUMP_STR(this->name));
  13. lub_dump_printf("dynamic : %s\n", LUB_DUMP_BOOL(this->dynamic));
  14. lub_dump_printf("value : %s\n", LUB_DUMP_STR(this->value));
  15. clish_action_dump(this->action);
  16. lub_dump_undent();
  17. }
  18. /*--------------------------------------------------------- */