[erlang-questions] Ignore duplicate difinitions in header files
Fri Jun 1 14:30:57 CEST 2007
Thanks, but sorry I couldn't mention "something other than using -ifndef".
Something like using a compiler argument, etc? Some sources are generated by
ASN.1 or Yacc, etc. in compile time, I try to void editing them manually.
From: Richard Carlsson [mailto:richardc@REDACTED]
Sent: Friday, June 01, 2007 2:51 PM
To: Eranga Udesh
Subject: Re: [erlang-questions] Ignore duplicate difinitions in header files
Eranga Udesh wrote:
> Is there a way to ignore duplicate object definitions (eg. record,
> define, etc) in different included files (.hrl)? For example, if one
> definition found in a previous included .hrl file, use that, but ignore
> any later duplicates find. This is required to prevent when multiple
> .hrl files define the same variable the exactly the same, but
> compilation exists with errors.
(Assuming you have control over at least one of the source .hrl files.)
More information about the erlang-questions