UAVCAN_PACK_STRUCTS is always defined

This commit is contained in:
Pavel Kirienko
2014-03-18 20:06:35 +04:00
parent 5eb49fcf7e
commit 8879230798
2 changed files with 7 additions and 0 deletions
@@ -31,6 +31,10 @@ ${line}
% endfor
******************************************************************************/
#ifndef UAVCAN_PACK_STRUCTS
# error UAVCAN_PACK_STRUCTS
#endif
% for nsc in t.cpp_namespace_components:
namespace ${nsc}
{
@@ -44,6 +44,9 @@
* Struct layout control.
* Define UAVCAN_PACK_STRUCTS = 1 to reduce memory usage.
*/
#ifndef UAVCAN_PACK_STRUCTS
# define UAVCAN_PACK_STRUCTS 0
#endif
#ifndef UAVCAN_PACKED_BEGIN
# define UAVCAN_PACKED_BEGIN _Pragma("pack(push, 1)")
#endif