Skip to content

Instantly share code, notes, and snippets.

@arjan
Created October 20, 2016 19:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save arjan/227e12154b1e3ae2b0725cd33d2d23e7 to your computer and use it in GitHub Desktop.
Save arjan/227e12154b1e3ae2b0725cd33d2d23e7 to your computer and use it in GitHub Desktop.
defmodule TTest do
use ExUnit.Case
defmodule Macro do
defmacro @({name, _, args}) do
IO.puts("defining #{name} #{inspect args}")
end
end
defmodule Foo do
import Kernel, except: [@: 1]
import Macro
@sdf("bla", 3)
def bar do
IO.puts("hoi")
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment