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

API macro erased but should be extern(System) #279

Open
adamdruppe opened this issue Nov 9, 2021 · 2 comments
Open

API macro erased but should be extern(System) #279

adamdruppe opened this issue Nov 9, 2021 · 2 comments
Labels

Comments

@adamdruppe
Copy link

I ran this on the chromium embedded framework. It has functions like this:

int(CEF_CALLBACK* move_to_next_attribute)(struct _cef_xml_reader_t* self);

Inside the extern(C) block. Which is OK on Linux, but on Windows, that CEF_CALLBACK expands to __stdcall. So I believe this should be extern(System) pointer.

Given the preprocessor this is tricky to do but maybe some kind of hack could recognize the pattern anyway.

@jacob-carlborg
Copy link
Owner

Does CEF_CALLBACK expand do nothing on Posix?

@adamdruppe
Copy link
Author

yes.

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