<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><br class=""><div><blockquote type="cite" class=""><div class="">30 янв. 2017 г., в 18:24, <<a href="mailto:john.hughes@quviq.com" class="">john.hughes@quviq.com</a>> <<a href="mailto:john.hughes@quviq.com" class="">john.hughes@quviq.com</a>> написал(а):</div><br class="Apple-interchange-newline"><div class="">
<div dir="ltr" class="">
<div dir="ltr" class="">
<div style="font-size: 12pt; font-family: Calibri;" class="">
<div class="">Here’s a behaviour that’s had me tearing my hair today. Consider this
module:</div>
<div class=""> </div>
<div class="">-module('Aaargh!!').</div>
<div class="">-define(PLEASE_DONT).</div>
<div class="">-ifndef(PLEASE_DONT).</div>
<div class="">-compile({parse_transform,undefined_parse_transform}).</div>
<div class="">-endif.</div>
<div class=""> </div>
<div class="">It fails to compile, with one simple error message:</div>
<div class=""> </div>
<div class="">20> c('Aaargh!!').</div>
<div class="">Aaargh!!.erl: undefined parse transform 'undefined_parse_transform'</div>
<div class="">error</div>
<div class=""> </div>
<div class="">If you can see why, you’re more an Erlang wizard than I am!</div>
<div class=""><br class=""></div></div></div></div></div></blockquote>Easy enough, there’s no one-argument define().</div><div><br class=""></div><div>Define it to true if you don’t care about the value.</div><br class=""></body></html>