Module: kamailio Branch: master Commit: a84e96f2e025a6befd4721ad3f67a104fd594190 URL: https://github.com/kamailio/kamailio/commit/a84e96f2e025a6befd4721ad3f67a104...
Author: Daniel-Constantin Mierla miconda@gmail.com Committer: Daniel-Constantin Mierla miconda@gmail.com Date: 2022-09-14T08:17:30+02:00
core: added preprocessor directive #!ifexp stm
- conditional evaluation of the statement as an expression with strings and numbers - example:
#!ifexp KAMAILIO_VERSION >= 5006000 ... #!else ... #!endif
- defined IDs can be used inside the expression - if not defined, value 0 is used - if defined with value, the value is used - if defined with no value, value 1 is used - if expression is evaluated to !=0 or non-empty string, then it is considered true
---
Modified: src/core/cfg.lex Modified: src/core/ppcfg.c Modified: src/core/ppcfg.h
---
Diff: https://github.com/kamailio/kamailio/commit/a84e96f2e025a6befd4721ad3f67a104... Patch: https://github.com/kamailio/kamailio/commit/a84e96f2e025a6befd4721ad3f67a104...