#define _CRT_SECURE_NO_WARNINGS #include #include "./types.hpp" #include "./hooks.hpp" Hook h; s32 main(s32 argc, char* argv[]) { printf("Hello world"); system_shutdown_hook << [] { printf("Goodbye world\n"); }; h << []{ printf("Hallo1"); }; h << [] { printf("Hallo2"); }; h << [] { printf("Hallo3"); }; h(); return 0; }