16 lines
273 B
C
16 lines
273 B
C
#include "utils/ast/ast_void.h"
|
|
|
|
#include <stdlib.h>
|
|
#include <assert.h>
|
|
#include <stdbool.h>
|
|
|
|
bool ast_is_void(struct ast *node)
|
|
{
|
|
assert(node != NULL);
|
|
return node->type == AST_VOID;
|
|
}
|
|
|
|
struct ast *ast_create_void(void)
|
|
{
|
|
return ast_create(AST_VOID, NULL);
|
|
}
|