What is an .hrl file in Erlang/OTP? Is it some sort of library mechanism?
What is an .hrl file in Erlang/OTP? Is it some sort of library mechanism?
A "header file" akin to a "C" include file.
One needs to invoke the -include directive from an .erl file to use them. Can contain any valid Erlang code.
hrl files are simply erlang "header", that is files containing common definitions that are intended to be included by .erl files.