Skip to content

Commit

Permalink
Add toml_impl.cpp and turn off toml exceptions
Browse files Browse the repository at this point in the history
  • Loading branch information
aceiii committed Apr 19, 2024
1 parent a5f0b6b commit 5c892d2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 3 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ set(CMAKE_CXX_STANDARD 17)

set(CMAKE_EXPORT_COMPILE_COMMANDS on)

add_compile_definitions(TOML_EXCEPTIONS=0)

set(SOURCE_FILES
src/main.cpp
src/interpreter.cpp
Expand All @@ -18,7 +20,7 @@ set(SOURCE_FILES
src/screen.cpp
src/assembly.cpp
src/keyboard.cpp
src/keyboard.h
src/toml_impl.cpp
)

set(EXPECTED_BUILD_TESTS OFF)
Expand Down
2 changes: 2 additions & 0 deletions src/toml_impl.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#define TOML_IMPLEMENTATION
#include <toml++/toml.hpp>

0 comments on commit 5c892d2

Please sign in to comment.