Skip to content

Instantly share code, notes, and snippets.

Avatar
💭
[i∂ₜ - ℋ]|Ψ(t)⟩ = 0

Stefanos Carlström jagot

💭
[i∂ₜ - ℋ]|Ψ(t)⟩ = 0
View GitHub Profile
@simonbyrne
simonbyrne / ccallmacro.jl
Created Jan 26, 2017
A julia ccall macro
View ccallmacro.jl
@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))))
@hlissner
hlissner / codesign_gdb.md
Last active Jan 7, 2022
Codesign gdb on OSX
View codesign_gdb.md