Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug on predefined Macros that are INTEGER_LITERAL #77

Open
trolldbois opened this issue Mar 4, 2021 · 0 comments
Open

Bug on predefined Macros that are INTEGER_LITERAL #77

trolldbois opened this issue Mar 4, 2021 · 0 comments

Comments

@trolldbois
Copy link
Owner

2021-03
Both compiler's Predefined Macros and standard's Preprocessor Macros handling works for string values.
But predef macros for INTEGER_LITERAL do NOT work.
From MACRO_DEFINITION

See https://github.com/trolldbois/ctypeslib/ctypeslib/codegen/cursorhandler.py#L451 in literal_handling.
No tokens are available for INTEGER_LITERAL.
Where we just use spelling for STRING_LITERAL

https://gcc.gnu.org/onlinedocs/cpp/Standard-Predefined-Macros.html
https://blog.kowalczyk.info/article/j/guide-to-predefined-macros-in-c-compilers-gcc-clang-msvc-etc..html
trolldbois added a commit that referenced this issue Apr 21, 2023
…orks better that the testunit hacks for macro value ans stringization. Macro concat doesnt work (#77)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant