1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

freestanding: add array support (stack only for now)

This commit is contained in:
bogen85
2019-12-01 02:27:36 -06:00
committed by Alexander Medvednikov
parent 3fea8f3de5
commit 854309a7d8
9 changed files with 235 additions and 49 deletions

View File

@ -206,4 +206,17 @@ typedef map map_string;
#define false 0
#endif
'
bare_c_headers = '
#define EMPTY_ARRAY_OF_ELEMS(x,n) (x[])
#define TCCSKIP(x) x
#ifdef __TINYC__
#undef EMPTY_ARRAY_OF_ELEMS
#define EMPTY_ARRAY_OF_ELEMS(x,n) (x[n])
#undef TCCSKIP
#define TCCSKIP(x)
#endif
'
)