Provide macro @libcall to simplify ccall's
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.
Coverage decreased (-1.06%) to 91.574% when pulling 823c57e3b04570303b4f9e0cc53216dbd9a045bf on emmt:eric-patch into 781dae0bb9783a7a5f51820d088d0b6554ffabe2 on JuliaGraphics:master.
"and less prone to errors" - which errors?
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 ;-)
This now exists in Base's @ccall macro.
Agree this should be done with @ccall