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:

committed by
Alexander Medvednikov

parent
3fea8f3de5
commit
854309a7d8
@ -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
|
||||
'
|
||||
)
|
||||
|
Reference in New Issue
Block a user