Added prefix 'uc_' to all .cpp files, which allows to compile libuavcan with makefiles that flatten directory structure (e.g. ChibiOS build system)

This commit is contained in:
Pavel Kirienko
2014-04-02 13:11:24 +04:00
parent 68e4c94fca
commit cdd0ff3a28
29 changed files with 0 additions and 0 deletions
+29
View File
@@ -0,0 +1,29 @@
/*
* Copyright (C) 2014 Pavel Kirienko <pavel.kirienko@gmail.com>
*/
#include <cassert>
#include <cstdlib>
#include <stdexcept>
#include <uavcan/error.hpp>
#include <uavcan/impl_constants.hpp>
#ifndef UAVCAN_EXCEPTIONS
# error UAVCAN_EXCEPTIONS
#endif
namespace uavcan
{
void handleFatalError(const char* msg)
{
#if UAVCAN_EXCEPTIONS
throw std::runtime_error(msg);
#else
(void)msg;
assert(0);
std::abort();
#endif
}
}