[erlang-questions] http_uri_parse/1 inconsistent return value + dialyser headache
Magnus Henoch
magnus.henoch@REDACTED
Tue Aug 14 14:06:06 CEST 2012
Motiejus Jakštys <desired.mta@REDACTED> writes:
> On Tue, Aug 14, 2012 at 2:04 PM, Magnus Henoch
> <magnus.henoch@REDACTED> wrote:
>> Zabrane Mickael <zabrane3@REDACTED> writes:
>>
>> An advanced variant of that is to define a ?catch_for_dialyzer macro
>> that expands to nothing for normal compilation, and to 'catch' when
>> running Dialyzer.
>
> Interesting. How do you know when you are running in dialyzer (i.e.
> how would you define that macro)?
The only way I know is to have your build system pass different -D flags
for normal compilation and dialyzer.
Regards,
Magnus
More information about the erlang-questions
mailing list