Skip to content

Compile as C++ #610

@THQ-WIFA

Description

@THQ-WIFA

Is your feature request related to a problem? Please describe.
My compiler offers the option to compile files as C or C++ by file ending (.c/.cpp).
However, there are legacy projects where everything is simply compiled as C++.

Describe the solution you'd like
Trice should be compilable as C++ without warnings.

Measures
I have identified a few measures to take:

  • Make casts to/from void* explicit.
  • Move two standard library #include within trice.h, to avoid catching them in extern "C" { .... }.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions