From 302d883f34864bc66a5e04532ae27d7e89fd94e8 Mon Sep 17 00:00:00 2001 From: skal Date: Wed, 28 Jan 2026 09:31:13 +0100 Subject: style: Add 3-line descriptive headers to all source files This commit applies a new project-wide rule that every source file must begin with a concise 3-line comment header describing its purpose. - Updated CONTRIBUTING.md with the new rule. - Applied headers to all .cc and .h files in src/ and tools/. - Fixed various minor compilation errors and missing includes discovered during the header update process. --- src/main.cc | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'src/main.cc') diff --git a/src/main.cc b/src/main.cc index bcf6015..6428ed2 100644 --- a/src/main.cc +++ b/src/main.cc @@ -1,6 +1,10 @@ +// This file is part of the 64k demo project. +// It serves as the application entry point. +// Orchestrates platform initialization, main loop, and subsystem coordination. + +#include "assets.h" // Include generated asset header #include "audio/audio.h" #include "audio/synth.h" -#include "assets.h" // Include generated asset header #include "gpu/gpu.h" #include "platform.h" #include "util/math.h" @@ -57,7 +61,7 @@ int main(int argc, char **argv) { // Dummy call to ensure asset system is linked size_t dummy_size; - const uint8_t* dummy_asset = GetAsset(AssetId::ASSET_NULL_ASSET, &dummy_size); + const uint8_t *dummy_asset = GetAsset(AssetId::ASSET_NULL_ASSET, &dummy_size); (void)dummy_asset; (void)dummy_size; @@ -98,4 +102,4 @@ int main(int argc, char **argv) { gpu_shutdown(); platform_shutdown(); return 0; -} +} \ No newline at end of file -- cgit v1.2.3