Skip to content

Instantly share code, notes, and snippets.

@khia khia/gist:3874237
Created Oct 11, 2012

What would you like to do?
iex(6)> defmodule Test do
...(6)> defmacrop foo() do
...(6)> quote location: [line: 54], do: __ENV__.line
...(6)> end
...(6)> def test, do: foo
...(6)> end
iex:6: redefining module Test
iex(7)> Test.test
iex(8)> __ENV__.line
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.