-
Notifications
You must be signed in to change notification settings - Fork 26
## is not implemented #506
Comments
This was broken in b7a16c2, cc @hdamron17 |
|
Minimal reproduction: #define __GLIBC_USE(F) __GLIBC_USE_ ## F
# define __GLIBC_USE_IEC_60559_TYPES_EXT 1
# define __GLIBC_USE_ISOC2X 1
#if __GLIBC_USE (IEC_60559_BFP_EXT) || __GLIBC_USE (ISOC2X)
int main() {}
#endif
<stdin>:4:4 error: invalid macro: trailing tokens in `#if` expression
#if __GLIBC_USE (IEC_60559_BFP_EXT) || __GLIBC_USE (ISOC2X)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
<stdin>:6:2 error: invalid macro: #endif without #if
#endif
^^^^^ |
I think this is just that |
It passed the tests..? I'm confused how if it depended on ## |
Well, |
Hmm. I thought I ran it on my Ubuntu machine but maybe not. Or it could be different there too. |
I don't think ## will be too hard to implement. But maybe that's a problem for after you finish separating out the preprocessor. |
Let's not wait for me to separate the preprocessor 😅 we'll be here a while. I don't expect |
This is going to be a lot harder than I originally thought because we're dealing with tokens not plain strings and the token type can change in concatenation. E.g. |
Expected behavior
cargo run tests/runner-tests/hello_world.c
works on linux platforms.Code
The text was updated successfully, but these errors were encountered: