mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-31 05:41:42 +08:00
UAVCAN_PACK_STRUCTS removed, was useless
This commit is contained in:
@@ -33,19 +33,11 @@ ${line}
|
|||||||
#undef ${a.name}
|
#undef ${a.name}
|
||||||
% endfor
|
% endfor
|
||||||
|
|
||||||
#ifndef UAVCAN_PACK_STRUCTS
|
|
||||||
# error UAVCAN_PACK_STRUCTS
|
|
||||||
#endif
|
|
||||||
|
|
||||||
% for nsc in t.cpp_namespace_components:
|
% for nsc in t.cpp_namespace_components:
|
||||||
namespace ${nsc}
|
namespace ${nsc}
|
||||||
{
|
{
|
||||||
% endfor
|
% endfor
|
||||||
|
|
||||||
#if UAVCAN_PACK_STRUCTS
|
|
||||||
UAVCAN_PACKED_BEGIN
|
|
||||||
#endif
|
|
||||||
|
|
||||||
% if t.kind != t.KIND_SERVICE:
|
% if t.kind != t.KIND_SERVICE:
|
||||||
template <int _tmpl>
|
template <int _tmpl>
|
||||||
% endif
|
% endif
|
||||||
@@ -178,10 +170,6 @@ private:
|
|||||||
% endif
|
% endif
|
||||||
};
|
};
|
||||||
|
|
||||||
#if UAVCAN_PACK_STRUCTS
|
|
||||||
UAVCAN_PACKED_END
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Out of line struct method definitions
|
* Out of line struct method definitions
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -84,12 +84,8 @@
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Struct layout control.
|
* Struct layout control.
|
||||||
* Set UAVCAN_PACK_STRUCTS=1 and define UAVCAN_PACKED_BEGIN and UAVCAN_PACKED_END to reduce memory usage.
|
|
||||||
* THIS MAY BREAK THE CODE.
|
* THIS MAY BREAK THE CODE.
|
||||||
*/
|
*/
|
||||||
#ifndef UAVCAN_PACK_STRUCTS
|
|
||||||
# define UAVCAN_PACK_STRUCTS 0
|
|
||||||
#endif
|
|
||||||
#ifndef UAVCAN_PACKED_BEGIN
|
#ifndef UAVCAN_PACKED_BEGIN
|
||||||
# define UAVCAN_PACKED_BEGIN
|
# define UAVCAN_PACKED_BEGIN
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user