[sr-dev] git:master: core: new preprocessor directives: trydef and redef
Henning Westerholt
Henning.Westerholt at 1und1.de
Wed Jul 6 00:00:25 CEST 2011
Daniel wrote:
> Module: sip-router
> Branch: master
> Commit: 13de789c655b2b5da47a9982fe19fef386265dc2
> URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=13de789c655b2b5da47a9982fe19fef386265dc2
>
> core: new preprocessor directives: trydef and redef
>
> - #!trydef - don't define if it is already done
> - #!redef - redefine even already defined
> - both have the prototype like #!define
Hello Daniel,
looks interesting. :-) Just one question, have you thought about using something like in the C cpp
language, instead of adding two more keywords to our grammar? E.g. something like this:
- trydef
#!ifndef foo
#!define foo "bar"
- redef
#!define foo "bar"
# foo == bar
#...
#!define foo "bar2
# foo == bar2
Best regards,
Henning
More information about the sr-dev
mailing list