Compare Pastes
Differences between the pastes
#265596 (04.10.2022 13:12)
and
#265597 (04.10.2022 13:12).
1 | #include "utility/basic_app.hpp" | |
2 | ||
3 | class test: public utility::basic_app | |
4 | { | |
5 | using app = utility::basic_app | |
6 | ||
7 | public: | |
8 | test() | |
9 | : app(2048) | |
10 | { | |
11 | } | |
12 | ||
13 | int main_loop() | |
14 | { | |
15 | for (std::size_t i = 0; i < 1000000; ++i) | |
16 | { | |
17 | app::info("test") << "App - " << i; | |
18 | } | |
19 | return 0; | |
20 | } | |
21 | }; | |
22 | ||
23 | int main(int argc, char* argv[]) | |
24 | { | |
25 | test app_; | |
26 | ||
27 | return app_.main(argc, argv); | |
1 | #include "utility/basic_app.hpp" | |
2 | ||
3 | class test: public utility::basic_app | |
4 | { | |
5 | using app = utility::basic_app | |
6 | ||
7 | public: | |
8 | test() | |
9 | : app(2048) | |
10 | { | |
11 | } | |
12 | ||
13 | int main_loop() | |
14 | { | |
15 | for (std::size_t i = 0; i < 1000000; ++i) | |
16 | { | |
17 | app::info("test") << "App - " << i; | |
18 | } | |
19 | return 0; | |
20 | } | |
21 | }; | |
22 | ||
23 | int main(int argc, char* argv[]) | |
24 | { | |
25 | test app_; | |
26 | ||
27 | return app_.main(argc, argv); |