> and I programmed it as > julia> macro do_ccall(f,args...) > :(ccall(f,Int,$(ntuple(i->Int,length(args))),args...)) end
I belive the arguments should be a tuple expression which you can generate with Expr(:tuple, [Int for i in 1:length(args)]...) > julia> macroexpand(:(@do_ccall(f,1,2,3))) > :(ccall(f,Int,(Int64,Int64,Int64),args...)) > In general you can use `Meta.show_sexpr` (or `dump`/`xdump`) to see more precisely what the expression is.