Implemented something like a console (still WIP).

This commit is contained in:
2024-01-20 02:52:58 +01:00
parent f4bad14fcd
commit c41a9a1034
9 changed files with 151 additions and 20 deletions

View File

@@ -4,6 +4,7 @@
#if !defined(BAD_APPLE_OS_CSTDIO_INCLUDED)
#define BAD_APPLE_OS_CSTDIO_INCLUDED
#include <string>
#include <stdio.h>
namespace std
@@ -21,6 +22,9 @@ using ::fgets;
using ::fgetc;
using ::getc;
using ::getchar;
bool fgetline(FILE* stream, std::string& outLine) noexcept;
inline bool getline(std::string& outLine) noexcept { return fgetline(stdin, outLine); }
}
#endif // !defined(BAD_APPLE_OS_CSTDIO_INCLUDED)