Added config macro UAVCAN_TOSTRING

This commit is contained in:
Pavel Kirienko
2014-04-10 13:32:35 +04:00
parent 29138214dc
commit d0b541e22d
20 changed files with 62 additions and 21 deletions
@@ -60,6 +60,18 @@
# define UAVCAN_EXPORT
#endif
/**
* It might make sense to remove toString() methods for an embedded system
*/
#ifndef UAVCAN_TOSTRING
# define UAVCAN_TOSTRING 1
#endif
#if UAVCAN_TOSTRING
# include <string>
# include <cstdio>
#endif
namespace uavcan
{