mirror of
https://github.com/parchlinux/calamares.git
synced 2025-07-03 20:35:36 -04:00
[libcalamares] Support switching public/private during tests
This commit is contained in:
parent
e96198e61c
commit
9c382e3555
1 changed files with 13 additions and 1 deletions
|
@ -1,5 +1,5 @@
|
|||
/* === This file is part of Calamares - <https://github.com/calamares> ===
|
||||
*
|
||||
*
|
||||
* SPDX-FileCopyrightText: 2014 Teo Mrnjavac <teo@kde.org>
|
||||
* SPDX-FileCopyrightText: 2020 Adriaan de Groot <groot@kde.org>
|
||||
*
|
||||
|
@ -76,4 +76,16 @@
|
|||
#endif
|
||||
#endif
|
||||
|
||||
/*
|
||||
* For private functions that should be public for testing purposes,
|
||||
* use PRIVATETEST, which is private except when building tests.
|
||||
*/
|
||||
#ifndef PRIVATETEST
|
||||
#if defined( BUILD_AS_TEST )
|
||||
#define PRIVATETEST public
|
||||
#else
|
||||
#define PRIVATETEST private
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue