mirror of https://gitee.com/bigwinds/arangodb
fixed wrong defines
This commit is contained in:
parent
86a35e93b6
commit
393ffba276
|
@ -37,7 +37,7 @@ EdgeConditionBuilder::EdgeConditionBuilder(AstNode* modCondition)
|
|||
_toCondition(nullptr),
|
||||
_modCondition(modCondition),
|
||||
_containsCondition(false) {
|
||||
#ifdef TRI_ENABLE_MAINTAINER_MODE
|
||||
#ifdef ARANGODB_ENABLE_MAINTAINER_MODE
|
||||
if (_modCondition != nullptr) {
|
||||
TRI_ASSERT(_modCondition->type == NODE_TYPE_OPERATOR_NARY_AND);
|
||||
}
|
||||
|
@ -58,7 +58,7 @@ void EdgeConditionBuilder::swapSides(AstNode* cond) {
|
|||
TRI_ASSERT(cond == _fromCondition || cond == _toCondition);
|
||||
TRI_ASSERT(cond->type == NODE_TYPE_OPERATOR_BINARY_EQ);
|
||||
if (_containsCondition) {
|
||||
#ifdef TRI_ENABLE_MAINTAINER_MODE
|
||||
#ifdef ARANGODB_ENABLE_MAINTAINER_MODE
|
||||
// If used correctly this class guarantuees that the last element
|
||||
// of the nary-and is the _from or _to part and is exchangable.
|
||||
TRI_ASSERT(_modCondition->numMembers() > 0);
|
||||
|
|
|
@ -149,7 +149,7 @@ TraversalNode::TraversalNode(ExecutionPlan* plan, size_t id, TRI_vocbase_t* vocb
|
|||
_pruneExpression->variables(_pruneVariables);
|
||||
}
|
||||
|
||||
#ifdef TRI_ENABLE_MAINTAINER_MODE
|
||||
#ifdef ARANGODB_ENABLE_MAINTAINER_MODE
|
||||
checkConditionsDefined();
|
||||
#endif
|
||||
}
|
||||
|
@ -264,7 +264,7 @@ TraversalNode::TraversalNode(ExecutionPlan* plan, arangodb::velocypack::Slice co
|
|||
}
|
||||
}
|
||||
|
||||
#ifdef TRI_ENABLE_MAINTAINER_MODE
|
||||
#ifdef ARANGODB_ENABLE_MAINTAINER_MODE
|
||||
checkConditionsDefined();
|
||||
#endif
|
||||
}
|
||||
|
@ -566,7 +566,7 @@ ExecutionNode* TraversalNode::clone(ExecutionPlan* plan, bool withDependencies,
|
|||
c->_conditionVariables.emplace(it->clone());
|
||||
}
|
||||
|
||||
#ifdef TRI_ENABLE_MAINTAINER_MODE
|
||||
#ifdef ARANGODB_ENABLE_MAINTAINER_MODE
|
||||
checkConditionsDefined();
|
||||
#endif
|
||||
|
||||
|
@ -596,7 +596,7 @@ ExecutionNode* TraversalNode::clone(ExecutionPlan* plan, bool withDependencies,
|
|||
c->_vertexConditions.emplace(it.first, it.second->clone(_plan->getAst()));
|
||||
}
|
||||
|
||||
#ifdef TRI_ENABLE_MAINTAINER_MODE
|
||||
#ifdef ARANGODB_ENABLE_MAINTAINER_MODE
|
||||
c->checkConditionsDefined();
|
||||
#endif
|
||||
|
||||
|
@ -762,7 +762,7 @@ void TraversalNode::getPruneVariables(std::vector<Variable const*>& res) const {
|
|||
}
|
||||
}
|
||||
|
||||
#ifdef TRI_ENABLE_MAINTAINER_MODE
|
||||
#ifdef ARANGODB_ENABLE_MAINTAINER_MODE
|
||||
void TraversalNode::checkConditionsDefined() const {
|
||||
TRI_ASSERT(_tmpObjVariable != nullptr);
|
||||
TRI_ASSERT(_tmpObjVarNode != nullptr);
|
||||
|
|
|
@ -194,7 +194,7 @@ class TraversalNode : public GraphNode {
|
|||
Expression* pruneExpression() const { return _pruneExpression.get(); }
|
||||
|
||||
private:
|
||||
#ifdef TRI_ENABLE_MAINTAINER_MODE
|
||||
#ifdef ARANGODB_ENABLE_MAINTAINER_MODE
|
||||
void checkConditionsDefined() const;
|
||||
#endif
|
||||
|
||||
|
|
|
@ -39,7 +39,7 @@
|
|||
#include <velocypack/velocypack-aliases.h>
|
||||
#include <cmath>
|
||||
|
||||
#ifdef WIN32
|
||||
#ifdef _WIN32
|
||||
#undef near
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Reference in New Issue