You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

28 lines
411 B

  1. #define _CRT_SECURE_NO_WARNINGS
  2. #include <stdio.h>
  3. #include "./types.hpp"
  4. #include "./hooks.hpp"
  5. Hook h;
  6. s32 main(s32 argc, char* argv[]) {
  7. printf("Hello world");
  8. system_shutdown_hook << [] {
  9. printf("Goodbye world\n");
  10. };
  11. h << []{
  12. printf("Hallo1");
  13. };
  14. h << [] {
  15. printf("Hallo2");
  16. };
  17. h << [] {
  18. printf("Hallo3");
  19. };
  20. h();
  21. return 0;
  22. }