radiance 1.0.0

This commit is contained in:
Deadcode committed 2026-10-04 12:02:41 +02:00
commit ae74a8aebf
616 files changed
+338692

No files matched your search

+19
View File
@@ -0,0 +1,19 @@
/* main.cpp -- the entry point. Everything it does is in engine.h's comment; this file only turns
* a command line into that sequence and a status into an exit code.
*/
#include "engine.h"
int main(int argc, char** argv) {
rad::Config cfg;
int s = rad::config_parse(argc, argv, &cfg);
if (s == 1) { rad::config_usage(argv[0]); return 0; }
if (s < 0) { rad::config_usage(argv[0]); return 2; }
rad::Engine engine(std::move(cfg));
s = engine.start();
if (s < 0) return 1; /* start() already said what and why */
if (engine.config().debug_graph) return engine.dump();
return engine.serve() < 0 ? 1 : 0;
}