aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMarcos Magueta <maguetamarcos@gmail.com>2026-05-08 17:31:36 -0300
committerMarcos Magueta <maguetamarcos@gmail.com>2026-05-08 17:31:36 -0300
commit602af97c269bdc211cc7aeb34e436152053395cc (patch)
treea76761eaee85550d5b16e228e8f2c75f4fd88c6f /src
parent4a14379e3fa49714d169b0a3aaa1ed2b38058196 (diff)
downloadRNT-602af97c269bdc211cc7aeb34e436152053395cc.tar.gz
RNT-602af97c269bdc211cc7aeb34e436152053395cc.zip
restructure project
Diffstat (limited to 'src')
-rw-r--r--src/NT.cpp29
1 files changed, 29 insertions, 0 deletions
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 <iostream>
+#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