19 lines
457 B
C++
19 lines
457 B
C++
|
|
// SPDX-License-Identifier: LGPL-3.0-only
|
||
|
|
// SPDX-FileCopyrightText: Copyright (C) 2026 Catcrafts®
|
||
|
|
|
||
|
|
// WITH_EXTRA comes from the switch.h of the library the app is built on:
|
||
|
|
// found through its directory, which is on the include path of what is
|
||
|
|
// built on it.
|
||
|
|
#include <switch.h>
|
||
|
|
#if WITH_EXTRA
|
||
|
|
import Extra;
|
||
|
|
#endif
|
||
|
|
|
||
|
|
// Exits with 40 when WITH_EXTRA is 1, 2 when it is 0.
|
||
|
|
int main() {
|
||
|
|
#if WITH_EXTRA
|
||
|
|
return ExtraValue();
|
||
|
|
#else
|
||
|
|
return 2;
|
||
|
|
#endif
|
||
|
|
}
|