mirror of
https://gitlab.com/ita1024/waf.git
synced 2024-11-25 11:19:52 +01:00
re_cpp matches are never empty
This commit is contained in:
parent
51b68cf13b
commit
6579592065
@ -1,7 +1,11 @@
|
||||
|
||||
#if A
|
||||
const char* c = "foo /*";
|
||||
#if B
|
||||
const char* d = " bar */";
|
||||
// /*
|
||||
#if C
|
||||
// */
|
||||
#include "a.h"
|
||||
#else
|
||||
#include "b.h"
|
||||
|
@ -138,7 +138,7 @@ skipped = 's'
|
||||
def repl(m):
|
||||
"""Replace function used with :py:attr:`waflib.Tools.c_preproc.re_cpp`"""
|
||||
s = m.group(0)
|
||||
if s.startswith('/'):
|
||||
if s[0] == '/':
|
||||
return ' '
|
||||
return s
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user