Best-practise currently for testing internal parts of libs? *_TEST_EXPORT macro?

Friedrich W. H. Kossebau kossebau at kde.org
Thu Sep 3 00:59:26 BST 2015


Am Montag, 31. August 2015, 09:26:52 schrieb Thiago Macieira:
> On Monday 31 August 2015 14:41:00 Friedrich W. H. Kossebau wrote:
> > #ifdef COMPILING_TESTS
> > #if defined _WIN32 || defined _WIN64
> 
> Remove the Windows check. The next lines are valid outside of Windows too
> and should be used on all platforms.
> 
> If and when I change Q_DECL_EXPORT to be protected visibility instead of
> default, this will be required.
> 
> > # if defined(calligrasheetsodf_EXPORTS)
> > #       define CALLIGRA_SHEETS_ODF_TEST_EXPORT KDE_EXPORT
> > #   else
> > #       define CALLIGRA_SHEETS_ODF_TEST_EXPORT KDE_IMPORT
> > #   endif

Thanks for the hint, picking up.

Cheers
Friedrich




More information about the kde-core-devel mailing list