Skip to content

C++ header improvement #7

@wojciechsura

Description

@wojciechsura

I have suggestion to modify the API header in the following way:

#ifndef UNIT_TESTS
	#ifdef LIBRARY_EXPORTS
	#define LIBRARY_EXPORT EXTERN_C
	#else
	#define LIBRARY_EXPORT EXTERN_C __declspec(dllimport)
	#endif // LIBRARY_EXPORTS

	#define PLUGIN_EXPORT EXTERN_C __declspec(dllexport)
#else
	#define LIBRARY_EXPORT
	#define PLUGIN_EXPORT
#endif

This simplifies creating mock API implementation to unit test the measure by removing all library method annotations.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions