diff --git a/CMakeLists.txt b/CMakeLists.txt index 13d0bba..1dddfb6 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -24,6 +24,8 @@ else() message(STATUS "Configuring hyprlang in Release") endif() +add_compile_definitions(HYPRLANG_INTERNAL) + set(CMAKE_CXX_STANDARD 23) file(GLOB_RECURSE SRCFILES CONFIGURE_DEPENDS "src/*.cpp" "include/hyprlang.hpp") diff --git a/include/hyprlang.hpp b/include/hyprlang.hpp index c5d43b3..a32119e 100644 --- a/include/hyprlang.hpp +++ b/include/hyprlang.hpp @@ -453,4 +453,9 @@ namespace Hyprlang { CParseResult parseRawStream(const std::string& stream); }; }; + +#ifndef HYPRLANG_INTERNAL +#undef HYPRLANG_END_MAGIC +#endif + #endif \ No newline at end of file