Indentations break the feed.
[SquirrelJME.git] / nanocoat / include / sjme / stdgone.h
blob07c89def3803a347178652f30f463d85ee29593d
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 * Functions which are completely missing from a system's native C runtime.
13 * @since 2024/10/03
16 #ifndef SQUIRRELJME_STDGONE_H
17 #define SQUIRRELJME_STDGONE_H
19 #include "sjme/config.h"
21 /* Anti-C++. */
22 #ifdef __cplusplus
23 #ifndef SJME_CXX_IS_EXTERNED
24 #define SJME_CXX_IS_EXTERNED
25 #define SJME_CXX_SQUIRRELJME_STDGONE_H
26 extern "C"
28 #endif /* #ifdef SJME_CXX_IS_EXTERNED */
29 #endif /* #ifdef __cplusplus */
31 /*--------------------------------------------------------------------------*/
33 #if defined(SJME_CONFIG_HAS_NO_SNPRINTF)
34 int snprintf(
35 sjme_attrInNotNull char* buf,
36 sjme_attrInPositive size_t bufSize,
37 sjme_attrInNotNull const char* format,
38 ...);
39 #endif
41 /*--------------------------------------------------------------------------*/
43 /* Anti-C++. */
44 #ifdef __cplusplus
45 #ifdef SJME_CXX_SQUIRRELJME_STDGONE_H
47 #undef SJME_CXX_SQUIRRELJME_STDGONE_H
48 #undef SJME_CXX_IS_EXTERNED
49 #endif /* #ifdef SJME_CXX_SQUIRRELJME_STDGONE_H */
50 #endif /* #ifdef __cplusplus */
52 #endif /* SQUIRRELJME_STDGONE_H */