debug.c needs dylib.h.
[SquirrelJME.git] / nanocoat / include / sjme / test / externTest.h
blob60bcc0c9eb0ff1570c9620f8b08540f2e0b18eba
1 /* -*- Mode: C; indent-tabs-mode: t; tab-width: 4 -*-
2 // ---------------------------------------------------------------------------
3 // SquirrelJME
4 // Copyright (C) Stephanie Gawroriski <xer@multiphasicapps.net>
5 // ---------------------------------------------------------------------------
6 // SquirrelJME is under the Mozilla Public License Version 2.0.
7 // See license.mkd for licensing and copyright information.
8 // -------------------------------------------------------------------------*/
10 /**
11 * External test support.
13 * @since 2023/12/21
16 #ifndef SQUIRRELJME_EXTERNTEST_H
17 #define SQUIRRELJME_EXTERNTEST_H
19 #include "sjme/nvm/nvm.h"
21 /* Anti-C++. */
22 #ifdef __cplusplus
23 #ifndef SJME_CXX_IS_EXTERNED
24 #define SJME_CXX_IS_EXTERNED
25 #define SJME_CXX_SQUIRRELJME_EXTERNTEST_H
26 extern "C" {
27 #endif /* #ifdef SJME_CXX_IS_EXTERNED */
28 #endif /* #ifdef __cplusplus */
30 /*--------------------------------------------------------------------------*/
32 /**
33 * Basic main test entry point.
35 * @param argc Argument count.
36 * @param argv Program arguments.
37 * @param nextTest The name of the next test.
38 * @return The exit code.
39 * @since 2023/12/21
41 int sjme_test_main(int argc, sjme_lpstr* argv, sjme_lpcstr* nextTest);
43 /*--------------------------------------------------------------------------*/
45 /* Anti-C++. */
46 #ifdef __cplusplus
47 #ifdef SJME_CXX_SQUIRRELJME_EXTERNTEST_H
49 #undef SJME_CXX_SQUIRRELJME_EXTERNTEST_H
50 #undef SJME_CXX_IS_EXTERNED
51 #endif /* #ifdef SJME_CXX_SQUIRRELJME_EXTERNTEST_H */
52 #endif /* #ifdef __cplusplus */
54 #endif /* SQUIRRELJME_EXTERNTEST_H */