Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a520fc13 authored by Lev Proleev's avatar Lev Proleev Committed by android-build-merger
Browse files

Add static asserts to functions using MixedTyped am: d36b7a8d

am: 46143549

Change-Id: Ib984df49884456f4c5ad34619337e5ae289624d7
parents aa916356 46143549
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -62,6 +62,8 @@ void copy_back(MixedTyped* dst, const std::vector<RequestArgument>& ra, char* sr
    copy_back_<float>(dst, ra, src);
    copy_back_<int32_t>(dst, ra, src);
    copy_back_<uint8_t>(dst, ra, src);
    static_assert(3 == std::tuple_size<MixedTyped>::value,
                  "Number of types in MixedTyped changed, but copy_back function wasn't updated");
}

// Top level driver for models and examples generated by test_generator.py