Skip to content

Commit

Permalink
fixes #20654 FAMs should not be used in the C++ backend (#20655)
Browse files Browse the repository at this point in the history
* fixes #20654 FAMs should not be used in the C++ backend

* updates the test so it only affects clang
  • Loading branch information
jmgomez authored Oct 25, 2022
1 parent 2d3e3ab commit 3b973f3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/nimbase.h
Original file line number Diff line number Diff line change
Expand Up @@ -478,7 +478,9 @@ typedef char* NCSTRING;
} name = {{length, (NI) ((NU)length | NIM_STRLIT_FLAG)}, str}

/* declared size of a sequence/variable length array: */
#if defined(__GNUC__) || defined(__clang__) || defined(_MSC_VER)
#if defined(__cplusplus) && defined(__clang__)
# define SEQ_DECL_SIZE 1
#elif defined(__GNUC__) || defined(__clang__) || defined(_MSC_VER)
# define SEQ_DECL_SIZE /* empty is correct! */
#else
# define SEQ_DECL_SIZE 1000000
Expand Down

0 comments on commit 3b973f3

Please sign in to comment.