Hello,
On 7/6/11 12:00 AM, Henning Westerholt wrote:
Daniel wrote:
Module: sip-router
Branch: master
Commit: 13de789c655b2b5da47a9982fe19fef386265dc2
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=13de789…
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
the #!ifndef test and then #!define works as well, if you like it
more.
But I wanted to have simpler options, so the config stays easy to read.
Cheers,
Daniel
--
Daniel-Constantin Mierla --
http://www.asipto.com
Kamailio Advanced Training, Oct 10-13, Berlin:
http://asipto.com/u/kat
http://linkedin.com/in/miconda --
http://twitter.com/miconda