From a34022eba3e81e2f1dcce398b88eeb7d17cf8280 Mon Sep 17 00:00:00 2001 From: Romain Forlot Date: Tue, 26 Nov 2019 16:07:11 +0100 Subject: [PATCH] Add generator for boolean fields Bug-AGL: SPEC-2779 Bug-AGL: SPEC-2976 Change-Id: Idaf74af197866152d9094941b44e7b752d0ccf80 Signed-off-by: Arthur Guyader Signed-off-by: Romain Forlot --- 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; -- 2.16.6