From 602af97c269bdc211cc7aeb34e436152053395cc Mon Sep 17 00:00:00 2001 From: Marcos Magueta Date: Fri, 8 May 2026 17:31:36 -0300 Subject: restructure project --- src/NT.cpp | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 src/NT.cpp (limited to 'src') diff --git a/src/NT.cpp b/src/NT.cpp new file mode 100644 index 0000000..15bf63d --- /dev/null +++ b/src/NT.cpp @@ -0,0 +1,29 @@ +#include "NT.h" + +#ifdef NT_CONSOLE_APP +#include +#endif + +namespace nt +{ + bool NT::IsRunning() const + { + return true; + } +} + +#ifdef NT_CONSOLE_APP +int main() +{ + const nt::NT runtime; + std::cout << "RNT running: " << (runtime.IsRunning() ? "yes" : "no") << '\n'; + const int exit_code = runtime.IsRunning() ? 0 : 1; + +#ifdef NT_WAIT_ON_EXIT + std::cout << "Press Enter to exit..."; + std::cin.get(); +#endif + + return exit_code; +} +#endif -- cgit v1.2.3