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
Andre Henriques 6bdb56755d
All checks were successful
continuous-integration/drone/push Build is passing
merge files and made set_instmap to func
2024-01-16 12:34:34 +00:00

18 lines
226 B
Elixir

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