clang-tidy

This commit is contained in:
2026-04-07 12:06:41 +02:00
parent 39170a086e
commit 5462b31f96
12 changed files with 63 additions and 64 deletions

View File

@@ -13,7 +13,7 @@ Empezado en Castalla el 01/07/2022.
#include "core/system/director.hpp"
#include "core/system/event_buffer.hpp"
SDL_AppResult SDL_AppInit(void** appstate, int argc, char* argv[]) {
auto SDL_AppInit(void** appstate, int argc, char* argv[]) -> SDL_AppResult {
(void)argc;
(void)argv;
@@ -22,13 +22,13 @@ SDL_AppResult SDL_AppInit(void** appstate, int argc, char* argv[]) {
return SDL_APP_CONTINUE;
}
SDL_AppResult SDL_AppEvent(void* appstate, SDL_Event* event) {
auto SDL_AppEvent(void* appstate, SDL_Event* event) -> SDL_AppResult {
(void)appstate;
EventBuffer::events.push_back(*event);
return SDL_APP_CONTINUE;
}
SDL_AppResult SDL_AppIterate(void* appstate) {
auto SDL_AppIterate(void* appstate) -> SDL_AppResult {
auto* director = static_cast<Director*>(appstate);
return director->iterate();
}