27 lines
483 B
C
27 lines
483 B
C
|
|
#include <assert.h>
|
|
|
|
#include <debug.h>
|
|
|
|
#include "struct.h"
|
|
#include "inheritance.h"
|
|
#include "prettyprint.h"
|
|
|
|
struct stringtree* value_prettyprint(
|
|
int *out_chosen_color,
|
|
struct value* this,
|
|
bool with_color)
|
|
{
|
|
ENTER;
|
|
|
|
assert(this);
|
|
assert(this->inheritance);
|
|
assert(this->inheritance->prettyprint);
|
|
|
|
struct stringtree* tree = (this->inheritance->prettyprint)(
|
|
out_chosen_color, this, with_color);
|
|
|
|
EXIT;
|
|
return tree;
|
|
}
|
|
|