CARLA
LibCarla
source
test
test.cpp
Go to the documentation of this file.
1
// Copyright (c) 2017 Computer Vision Center (CVC) at the Universitat Autonoma
2
// de Barcelona (UAB).
3
//
4
// This work is licensed under the terms of the MIT license.
5
// For a copy, see <https://opensource.org/licenses/MIT>.
6
7
#ifdef LIBCARLA_NO_EXCEPTIONS
8
9
#include <
carla/Exception.h
>
10
#include <
carla/Logging.h
>
11
12
#include <exception>
13
14
namespace
carla
{
15
16
void
throw_exception
(
const
std::exception &e) {
17
log_critical
(
"carla::throw_exception:"
, e.what());
18
log_critical
(
"calling std::terminate because exceptions are disabled."
);
19
std::terminate();
20
}
21
22
}
// namespace carla
23
24
#endif // LIBCARLA_NO_EXCEPTIONS
25
26
#include "
Random.h
"
27
28
namespace
util
{
29
30
thread_local std::mt19937_64 Random::_engine((std::random_device())());
31
32
}
// namespace util
util
Definition:
test/Buffer.cpp:14
Logging.h
carla::throw_exception
void throw_exception(const std::exception &e)
Definition:
Carla.cpp:135
carla
This file contains definitions of common data structures used in traffic manager. ...
Definition:
Carla.cpp:133
Random.h
carla::log_critical
static void log_critical(Args &&... args)
Definition:
Logging.h:124
Exception.h
Generated by
1.8.13