Created
October 26, 2020 19:01
-
-
Save Donpedro13/e29034bf28323876e09c857bd47092a6 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#ifdef _WIN32 | |
using nchar = wchar_t; | |
using nstring = std::wstring; | |
#define NSTRLITERAL(str) L##str | |
#define nfopen _wfopen | |
/* ... */ | |
#else | |
using nchar = char; | |
using nstring = std::string; | |
#define NSTRLITERAL(str) str | |
#define nfopen fopen | |
/* ... */ | |
#endif // #ifdef _WIN32 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment