From 6f79d92edc282f7a080f95bef0c24f63037e7438 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Beno=C3=AEt=20Legat?= Date: Wed, 11 Oct 2017 11:08:49 +0200 Subject: [PATCH] Fix macro in Julia v0.6 with esc --- src/HTTPC.jl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/HTTPC.jl b/src/HTTPC.jl index 230b7f1..7f70736 100644 --- a/src/HTTPC.jl +++ b/src/HTTPC.jl @@ -208,7 +208,7 @@ c_curl_multi_timer_cb = cfunction(curl_multi_timer_cb, Cint, (Ptr{Void}, Clong, macro ce_curl(f, args...) quote cc = CURLE_OK - cc = $(esc(f))(ctxt.curl, $(args...)) + cc = $(esc(f))($(esc(:ctxt)).curl, $(esc.(args)...)) if(cc != CURLE_OK) error(string($f) * "() failed: " * unsafe_string(curl_easy_strerror(cc))) @@ -219,7 +219,7 @@ end macro ce_curlm(f, args...) quote cc = CURLM_OK - cc = $(esc(f))(curlm, $(args...)) + cc = $(esc(f))($(esc(:curlm)), $(esc.(args)...)) if(cc != CURLM_OK) error(string($f) * "() failed: " * unsafe_string(curl_multi_strerror(cc)))