Reorganized directory structure - directory 'internal' pulled up one level. No logical changes.

This commit is contained in:
Pavel Kirienko
2014-03-14 15:01:20 +04:00
parent ab34c94ba2
commit 15cbf96378
90 changed files with 165 additions and 166 deletions
+30
View File
@@ -0,0 +1,30 @@
/*
* Debug stuff, should only be used for library development.
* Copyright (C) 2014 Pavel Kirienko <pavel.kirienko@gmail.com>
*/
#pragma once
#if UAVCAN_DEBUG
#include <cstdio>
#include <cstdarg>
#if __GNUC__
__attribute__ ((format (printf, 2, 3)))
#endif
static void UAVCAN_TRACE(const char* src, const char* fmt, ...)
{
va_list args;
std::printf("UAVCAN: %s: ", src);
va_start(args, fmt);
std::vprintf(fmt, args);
va_end(args);
std::puts("");
}
#else
# define UAVCAN_TRACE(...) ((void)0)
#endif