header: undef internal symbols if not internal

This commit is contained in:
Vaxry 2024-03-08 16:15:01 +00:00
parent 2e2a1992c8
commit bba5daeaf9
2 changed files with 7 additions and 0 deletions

View File

@ -24,6 +24,8 @@ else()
message(STATUS "Configuring hyprlang in Release") message(STATUS "Configuring hyprlang in Release")
endif() endif()
add_compile_definitions(HYPRLANG_INTERNAL)
set(CMAKE_CXX_STANDARD 23) set(CMAKE_CXX_STANDARD 23)
file(GLOB_RECURSE SRCFILES CONFIGURE_DEPENDS "src/*.cpp" "include/hyprlang.hpp") file(GLOB_RECURSE SRCFILES CONFIGURE_DEPENDS "src/*.cpp" "include/hyprlang.hpp")

View File

@ -453,4 +453,9 @@ namespace Hyprlang {
CParseResult parseRawStream(const std::string& stream); CParseResult parseRawStream(const std::string& stream);
}; };
}; };
#ifndef HYPRLANG_INTERNAL
#undef HYPRLANG_END_MAGIC
#endif
#endif #endif