mirror of
https://github.com/SCST-project/scst.git
synced 2026-08-17 04:36:22 +00:00
Added yet another pattern to the preprocessor statement partial evaluation engine.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2709 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
@@ -207,6 +207,12 @@ function evaluate(stmnt, pattern, arg, op, result) {
|
||||
stmnt = "+#if " (op[1] == 0 ? op[2] : op[1])
|
||||
}
|
||||
|
||||
pattern="\\(([01])[ ]*\\|\\|[ ]*(!*[ ]*defined[ ]*\\([ ]*[A-Za-z_]*[ ]*\\))\\)$"
|
||||
while (match(stmnt, pattern, op) != 0)
|
||||
{
|
||||
stmnt = "+#if " (op[1] == 0 ? op[2] : op[1])
|
||||
}
|
||||
|
||||
pattern="\\((-*[0-9]+)\\)"
|
||||
while (match(stmnt, pattern, op) != 0)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user