projects
/
platform
/
upstream
/
ninja.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4ee1cb5
)
assert no slashes in default GetNode
author
Scott Graham
<scottmg@chromium.org>
Sun, 9 Nov 2014 07:10:34 +0000
(23:10 -0800)
committer
Scott Graham
<scottmg@chromium.org>
Sun, 9 Nov 2014 07:10:34 +0000
(23:10 -0800)
src/state.cc
patch
|
blob
|
history
diff --git
a/src/state.cc
b/src/state.cc
index
b6c29ff
..
7d1d79d
100644
(file)
--- a/
src/state.cc
+++ b/
src/state.cc
@@
-112,6
+112,9
@@
Edge* State::AddEdge(const Rule* rule) {
}
Node* State::GetNode(StringPiece path) {
+#if defined(_WIN32) && !defined(NDEBUG)
+ assert(strpbrk(path.AsString().c_str(), "/\\") == NULL);
+#endif
return GetNode(path, 0);
}