1
0

var_dump.c 609 B

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