This repository has been archived on 2024-01-29. You can view files and clone it, but cannot push or open issues or pull requests.
distributed_system_coursework/lib/test.ex

18 lines
226 B
Elixir
Raw Normal View History

defmodule Test do
defmacro createfuncBase(name) do
quote do
def unquote(name)(true), do: true
end
end
end
defmodule Test2 do
require Test
def test(), do: false
Test.createfuncBase(:test)
end