# HG changeset patch # User Mike Becker # Date 1699476823 -3600 # Node ID 9dbfc00318875f035ea88a925da02d440e9fd88e # Parent f04a49b2aeee6ab2da94d9e708617bb702006449 remove C++ support diff -r f04a49b2aeee -r 9dbfc0031887 src/ascension/context.h --- a/src/ascension/context.h Wed Nov 08 21:53:21 2023 +0100 +++ b/src/ascension/context.h Wed Nov 08 21:53:43 2023 +0100 @@ -34,10 +34,6 @@ #include #include -#ifdef __cplusplus -extern "C" { -#endif - /** The flag for the overall initialized state. */ #define ASC_FLAG_INITILIZED 0x01u @@ -64,9 +60,5 @@ void asc_context_initialize(void); void asc_context_destroy(void); -#ifdef __cplusplus -} // extern "C" -#endif - #endif /* ASCENSION_CONTEXT_H */ diff -r f04a49b2aeee -r 9dbfc0031887 src/ascension/datatypes.h --- a/src/ascension/datatypes.h Wed Nov 08 21:53:21 2023 +0100 +++ b/src/ascension/datatypes.h Wed Nov 08 21:53:43 2023 +0100 @@ -28,13 +28,13 @@ #ifndef ASCENSION_DATATYPES_H #define ASCENSION_DATATYPES_H +#ifdef __cplusplus +#error You cannot ascend using C++ +#endif + #include #include -#ifdef __cplusplus -extern "C" { -#endif - // -------------------------------------------------------------------------- // Datatype Definitions // -------------------------------------------------------------------------- @@ -119,8 +119,4 @@ mat[3][1] = -(top + bottom) / (top - bottom); } -#ifdef __cplusplus -} // extern "C" -#endif - #endif //ASCENSION_DATATYPES_H diff -r f04a49b2aeee -r 9dbfc0031887 src/ascension/error.h --- a/src/ascension/error.h Wed Nov 08 21:53:21 2023 +0100 +++ b/src/ascension/error.h Wed Nov 08 21:53:43 2023 +0100 @@ -30,10 +30,6 @@ #include -#ifdef __cplusplus -extern "C" { -#endif - void asc_error_cxstr(cxstring text); void asc_error_cchar(char const* text); void asc_error_cuchar(unsigned char const* text); @@ -55,9 +51,5 @@ #define asc_dprintf(...) printf(__VA_ARGS__); putchar('\n') #endif -#ifdef __cplusplus -} // extern "C" -#endif - #endif /* ASCENSION_ERROR_H */ diff -r f04a49b2aeee -r 9dbfc0031887 src/ascension/font.h --- a/src/ascension/font.h Wed Nov 08 21:53:21 2023 +0100 +++ b/src/ascension/font.h Wed Nov 08 21:53:43 2023 +0100 @@ -35,10 +35,6 @@ #define ASC_MAX_FONTS 64u #endif // ASC_MAX_FONTS -#ifdef __cplusplus -extern "C" { -#endif - enum AscFontStyle { ASC_FONT_REGULAR, ASC_FONT_BOLD, @@ -95,8 +91,4 @@ */ AscFont const *asc_font_cache_validate(AscFont const *font); -#ifdef __cplusplus -} // extern "C" -#endif - #endif //ASCENSION_FONT_H diff -r f04a49b2aeee -r 9dbfc0031887 src/ascension/utils.h --- a/src/ascension/utils.h Wed Nov 08 21:53:21 2023 +0100 +++ b/src/ascension/utils.h Wed Nov 08 21:53:43 2023 +0100 @@ -30,11 +30,6 @@ #include -#ifdef __cplusplus -extern "C" { -#endif - - static inline bool asc_test_flag(unsigned int reg, int flag) { return (reg & flag) == flag; } @@ -47,9 +42,5 @@ *reg &= ~flag; } -#ifdef __cplusplus -} // extern "C" -#endif - #endif /* ASCENSION_UTILS_H */ diff -r f04a49b2aeee -r 9dbfc0031887 src/ascension/window.h --- a/src/ascension/window.h Wed Nov 08 21:53:21 2023 +0100 +++ b/src/ascension/window.h Wed Nov 08 21:53:43 2023 +0100 @@ -37,11 +37,6 @@ #define ASC_MAX_WINDOWS 4u #endif // ASC_MAX_WINDOWS - -#ifdef __cplusplus -extern "C" { -#endif - typedef struct AscWindowSettings { int depth_size; int vsync; @@ -107,9 +102,5 @@ */ void asc_window_sync(AscWindow const *window); -#ifdef __cplusplus -} // extern "C" -#endif - #endif /* ASCENSION_WINDOW_H */