Skip to content

Commit

Permalink
[Core] Fix default struct initialiser in C++
Browse files Browse the repository at this point in the history
  • Loading branch information
FintasticMan committed Jan 2, 2025
1 parent 902ff3b commit 2645e8a
Show file tree
Hide file tree
Showing 7 changed files with 87 additions and 73 deletions.
146 changes: 80 additions & 66 deletions clay.h

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion examples/SDL2-video-demo/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ target_link_libraries(SDL2_video_demo PUBLIC
SDL2_ttf::SDL2_ttf-static
)

set(CMAKE_C_FLAGS_DEBUG "-Wall -Werror -Wno-error=missing-braces -DCLAY_DEBUG")
set(CMAKE_C_FLAGS_DEBUG "-Wall -Werror -DCLAY_DEBUG")
set(CMAKE_C_FLAGS_RELEASE "-O3")

add_custom_command(
Expand Down
2 changes: 1 addition & 1 deletion examples/cairo-pdf-rendering/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ target_compile_options(clay_examples_cairo_pdf_rendering PUBLIC)
target_include_directories(clay_examples_cairo_pdf_rendering PUBLIC . ${CAIRO_INCLUDE_DIRS})

target_link_libraries(clay_examples_cairo_pdf_rendering PUBLIC Cairo::Cairo)
set(CMAKE_C_FLAGS_DEBUG "-Wall -Werror -Wno-error=missing-braces")
set(CMAKE_C_FLAGS_DEBUG "-Wall -Werror")
set(CMAKE_C_FLAGS_RELEASE "-O3")

add_custom_command(
Expand Down
4 changes: 2 additions & 2 deletions examples/clay-official-website/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ set(CMAKE_C_STANDARD 99)

add_executable(clay_official_website main.c)

target_compile_options(clay_official_website PUBLIC -Wall -Werror -Wno-unknown-pragmas -Wno-error=missing-braces)
target_compile_options(clay_official_website PUBLIC -Wall -Werror -Wno-unknown-pragmas)
target_include_directories(clay_official_website PUBLIC .)

set(CMAKE_C_FLAGS_RELEASE "-O3")
set(CMAKE_C_FLAGS_RELEASE "-O3")
2 changes: 1 addition & 1 deletion examples/cpp-project-example/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@ add_executable(clay_examples_cpp_project_example main.cpp)

target_include_directories(clay_examples_cpp_project_example PUBLIC .)

set(CMAKE_CXX_FLAGS_DEBUG "-Werror -Wall -Wno-error=missing-braces")
set(CMAKE_CXX_FLAGS_DEBUG "-Werror -Wall")
set(CMAKE_CXX_FLAGS_RELEASE "-O3")
2 changes: 1 addition & 1 deletion examples/introducing-clay-video-demo/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ target_include_directories(clay_examples_introducing_clay_video_demo PUBLIC .)

target_link_libraries(clay_examples_introducing_clay_video_demo PUBLIC raylib)

set(CMAKE_C_FLAGS_DEBUG "-Wall -Werror -Wno-error=missing-braces -DCLAY_DEBUG")
set(CMAKE_C_FLAGS_DEBUG "-Wall -Werror -DCLAY_DEBUG")
set(CMAKE_C_FLAGS_RELEASE "-O3")

add_custom_command(
Expand Down
2 changes: 1 addition & 1 deletion examples/raylib-sidebar-scrolling-container/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ target_include_directories(clay_examples_raylib_sidebar_scrolling_container PUBL

target_link_libraries(clay_examples_raylib_sidebar_scrolling_container PUBLIC raylib)

set(CMAKE_C_FLAGS_DEBUG "-Wall -Werror -Wno-error=missing-braces -DCLAY_DEBUG")
set(CMAKE_C_FLAGS_DEBUG "-Wall -Werror -DCLAY_DEBUG")
set(CMAKE_C_FLAGS_RELEASE "-O3")

add_custom_command(
Expand Down

0 comments on commit 2645e8a

Please sign in to comment.