Apollo 10.0
自动驾驶开放平台
status.h
浏览该文件的文档.
1/* Copyright 2017 The Apollo Authors. All Rights Reserved.
2
3Licensed under the Apache License, Version 2.0 (the "License");
4you may not use this file except in compliance with the License.
5You may obtain a copy of the License at
6
7 http://www.apache.org/licenses/LICENSE-2.0
8
9Unless required by applicable law or agreed to in writing, software
10distributed under the License is distributed on an "AS IS" BASIS,
11WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12See the License for the specific language governing permissions and
13limitations under the License.
14=========================================================================*/
15#pragma once
16
18
19namespace apollo {
20namespace hdmap {
21namespace adapter {
22
24
25#define RETURN_IF_ERROR(expr) \
26 do { \
27 const apollo::common::Status status_ = (expr); \
28 if (!status_.ok()) return status_; \
29 } while (0)
30
31} // namespace adapter
32} // namespace hdmap
33} // namespace apollo
A general class to denote the return status of an API call.
Definition status.h:43
class register implement
Definition arena_queue.h:37