Note: these instructions are for pre-Sierra MacOS. Sierra (10.12) and newer users see https://gist.github.com/gravitylow/fb595186ce6068537a6e9da6d8b5b96d by @gravitylow
If you are getting this in gdb on OSX while trying to run a program:
Note: these instructions are for pre-Sierra MacOS. Sierra (10.12) and newer users see https://gist.github.com/gravitylow/fb595186ce6068537a6e9da6d8b5b96d by @gravitylow
If you are getting this in gdb on OSX while trying to run a program:
@eval macro $(Symbol("ccall"))(expr) | |
expr.head == :(::) && expr.args[1].head == :call || error("Invalid use of @ccall") | |
rettype = expr.args[2] | |
fname = expr.args[1].args[1] | |
cargs = expr.args[1].args[2:end] | |
arglist = [] | |
typlist = [] | |
tupexpr = :(()) | |
ccexpr = :(ccall($(esc(fname)), $(esc(rettype)), $(esc(tupexpr)))) |