mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-11-02 00:21:36 +08:00
Added config macro UAVCAN_TOSTRING
This commit is contained in:
@@ -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
|
||||
{
|
||||
|
||||
|
||||
Reference in New Issue
Block a user