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

Can not wrap macro #define __cdecl #328

Closed
melonedo opened this issue Sep 3, 2021 · 1 comment
Closed

Can not wrap macro #define __cdecl #328

melonedo opened this issue Sep 3, 2021 · 1 comment
Labels

Comments

@melonedo
Copy link
Contributor

melonedo commented Sep 3, 2021

This occured when I am wrapping CUDA($(CUDA_full_jll.artifact_dir)/cuda/targets/x86_64-linux/include/crt/host_defines.h for x86_64-linux-gnu target). The c code

#define __cdecl

Triggers assertion error, because __cdecl is a keyword, while

@assert length(tokens) > 1
asserts the expression is not empty.

@add_def __cdecl is possible fix is this header is in system headers, but sometimes this may not be very handy.

@Gnimuc
Copy link
Member

Gnimuc commented Sep 4, 2021

you could ignore it by adding it to this list:

const MACRO_IDK_BLACKLIST = [

@Gnimuc Gnimuc added the good first issue Good for newcomers label Sep 4, 2021
@Gnimuc Gnimuc added macro and removed good first issue Good for newcomers labels Dec 25, 2021
@Gnimuc Gnimuc closed this as completed in 03ee606 Dec 26, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants