假设我有模块test.erl,里面是宏TOTAL:
TOTAL
-module(test) -export([...]) -define(TOTAL,(100)) ...
如果get_total()在test.erl中定义,我可以test:get_total().从REPL 调用
get_total()
test:get_total().
如何在?TOTAL不定义函数的情况下调用模块test.erl之外的(宏)?
?TOTAL
erlang
erlang ×1