mirror of
https://github.com/DarkPlacesEngine/gmqcc.git
synced 2025-02-17 09:02:25 +00:00
style-fix
This commit is contained in:
parent
c520a32444
commit
e9b581adfb
1 changed files with 4 additions and 4 deletions
8
ast.c
8
ast.c
|
@ -6,10 +6,10 @@
|
|||
|
||||
#define ast_setfunc(me, fn, what) ( *(void**)&((me)->fn) = what )
|
||||
|
||||
#define ast_instantiate(T, ctx, destroyfn) \
|
||||
T *self = (T*)mem_a(sizeof(T)); \
|
||||
ast_node_init((ast_node*)self, ctx); \
|
||||
ast_setfunc(&((ast_node*)self)->node, destroy, destroyfn)
|
||||
#define ast_instantiate(T, ctx, destroyfn) \
|
||||
T *self = (T*)mem_a(sizeof(T)); \
|
||||
ast_node_init((ast_node*)self, ctx); \
|
||||
ast_setfunc(&((ast_node*)self)->node, destroy, destroyfn)
|
||||
|
||||
/* It must not be possible to get here. */
|
||||
static void _ast_node_destroy(ast_node *self)
|
||||
|
|
Loading…
Reference in a new issue