COVESA / capicxx-someip-runtime

Common API C++ SOMEIP runtime
Mozilla Public License 2.0
111 stars 81 forks source link

Deinitializer is missing #1

Closed nvdl closed 5 years ago

nvdl commented 6 years ago

The de-initializer is missing in:

https://github.com/GENIVI/capicxx-someip-runtime/blob/64f0cb0133b23ff13c48c377546cdaef45b3d9ce/src/CommonAPI/SomeIP/Factory.cpp#L23

Adding to "Types.hpp" fixes the issue:

#define DEINITIALIZER(f) \ static void f(void) __attribute__((destructor)); \ static void f(void)

I do not know if this is the correct approach though.

lutzbichler commented 5 years ago

DEINITIALIZER (and INITIALIZER) are defined in capicxx-core-runtime, Types.hpp.