From 93debbc7de331c4d8b9dda0cdfa8d785017dc27a Mon Sep 17 00:00:00 2001 From: Arthur Guyader Date: Thu, 29 Aug 2019 15:06:52 +0200 Subject: Add generator for boolean fields Bug-AGL : SPEC-2779 Change-Id: Idaf74af197866152d9094941b44e7b752d0ccf80 Signed-off-by: Arthur Guyader --- src/main.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index 9f7969f..9961105 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -170,8 +170,8 @@ std::ostream& operator<<(std::ostream& o, const generator& v) } std::string multi = "std::make_pair(" + multi_first + ", " + std::to_string(v.v_.multiplex().second) + ")"; o << v.line_prefix_ << '\t' << multi << ",// multiplex\n" - << v.line_prefix_ << '\t' << v.v_.is_big_endian() << ",// is_big_endian\n" - << v.line_prefix_ << '\t' << v.v_.is_signed() << ",// is_signed\n" + << v.line_prefix_ << '\t' << gen(v.v_.is_big_endian()) << ",// is_big_endian\n" + << v.line_prefix_ << '\t' << gen(v.v_.is_signed()) << ",// is_signed\n" << v.line_prefix_ << "\t" << gen(v.v_.unit()) << "// unit\n" << v.line_prefix_ << "})}"; return o; -- cgit 1.2.3-korg