runtime::detail::for_each(runtime::TVMArgsSetter(values, type_codes),
std::forward<Args>(args)...);
runtime::TVMRetValue rv;
- CallPacked(TVMArgs(values, type_codes, kNumArgs), &rv);
+ CallPacked(runtime::TVMArgs(values, type_codes, kNumArgs), &rv);
return rv;
}
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
- *
+ *
* http://www.apache.org/licenses/LICENSE-2.0
- *
+ *
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// DSL function implementations
Doc& Doc::operator<<(const Doc& right) {
- assert(this != &right);
+ CHECK(this != &right);
this->stream_.insert(this->stream_.end(), right.stream_.begin(), right.stream_.end());
return *this;
}
ret.stream_.push_back(text);
} else if (auto line = std::dynamic_pointer_cast<LineNode>(atom)) {
ret.stream_.push_back(Line(indent + line->indent));
- } else {assert(false);}
+ } else {CHECK(false);}
}
return ret;
}
os << text->str;
} else if (auto line = std::dynamic_pointer_cast<LineNode>(atom)) {
os << "\n" << std::string(line->indent, ' ');
- } else {assert(false);}
+ } else {CHECK(false);}
}
return os.str();
}