September 2013
Intermediate to advanced
548 pages
12h 25m
English
Before an Erlang module is compiled, it is automatically processed by the Erlang preprocessor. The preprocessor expands any macros that might be in the source file and inserts any necessary include files.
Ordinarily, you won’t need to look at the output of the
preprocessor, but in exceptional circumstances (for example, when
debugging a faulty macro), you might want to save the output of
the preprocessor. To see the result of preprocessing the module
some_module.erl, give the OS shell command.
| | $ erlc -P some_module.erl |
This produces a listing file called some_module.P.
Read now
Unlock full access