Skip to content

Commit

Permalink
Little changes for array #defines.
Browse files Browse the repository at this point in the history
  • Loading branch information
nseam committed Apr 7, 2023
1 parent db3442d commit 93a46bb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Std.h
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@
* @usage
* ARRAY_REF(<type of the array items>, <name of the variable>)
*/
#define ARRAY_TYPE(T) T[]
#define ARRAY_REF(T, N) REF(T) N ARRAY_DECLARATION_BRACKETS
#define FIXED_ARRAY_REF(T, N, S) ARRAY_REF(T, N)

Expand All @@ -124,7 +125,8 @@
* @usage
* ARRAY_REF(<type of the array items>, <name of the variable>)
*/
#define ARRAY_REF(T, N) _cpp_array<T>& N
#define ARRAY_TYPE(T) _cpp_array<T>
#define ARRAY_REF(T, N) ARRAY_TYPE(T)& N
#define FIXED_ARRAY_REF(T, N, S) T(&N)[S]

#define CONST_ARRAY_REF(T, N) const _cpp_array<T>& N
Expand Down

0 comments on commit 93a46bb

Please sign in to comment.