var_dump.c 491 B

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