26 lines
497 B
C
26 lines
497 B
C
|
|
#include <debug.h>
|
|
|
|
#include <expression/inc.h>
|
|
|
|
#include "../new.h"
|
|
|
|
#include "inheritance.h"
|
|
#include "struct.h"
|
|
#include "new.h"
|
|
|
|
struct statement* new_expression_statement(
|
|
struct expression* expression)
|
|
{
|
|
ENTER;
|
|
|
|
struct expression_statement* this = (void*) new_statement(
|
|
/* inheritance: */ &expression_statement_inheritance,
|
|
/* alloc size: */ sizeof(*this));
|
|
|
|
this->expression = inc_expression(expression);
|
|
|
|
EXIT;
|
|
return (void*) this;
|
|
}
|
|
|