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

Provide macro @libcall to simplify ccall's #334

Closed
wants to merge 1 commit into from

Conversation

emmt
Copy link

@emmt emmt commented Oct 29, 2020

A macro is provided to automatically use the correct library based on the prefix of the function. This makes the code a bit more readable and less prone to errors. The macro Cairo.@libcall can be used in other packages to simplify calling a Cairo/Pango function.

@coveralls
Copy link

coveralls commented Oct 29, 2020

Coverage Status

Coverage decreased (-1.06%) to 91.574% when pulling 823c57e on emmt:eric-patch into 781dae0 on JuliaGraphics:master.

@lobingera
Copy link
Contributor

"and less prone to errors" - which errors?

@emmt
Copy link
Author

emmt commented Oct 29, 2020

Well when the code is more clear and easier to read, I think that it less likely to make it wrong. I did not meant that that there were errors ;-)

@asinghvi17
Copy link

This now exists in Base's @ccall macro.

@ViralBShah
Copy link
Contributor

Agree this should be done with @ccall

@ViralBShah ViralBShah closed this Aug 12, 2024
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

Successfully merging this pull request may close these issues.

5 participants