diff options
Diffstat (limited to 'src/NT.cpp')
| -rw-r--r-- | src/NT.cpp | 29 |
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 |
