Skip to content

Instantly share code, notes, and snippets.

@Donpedro13
Created October 26, 2020 19:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Donpedro13/e29034bf28323876e09c857bd47092a6 to your computer and use it in GitHub Desktop.
Save Donpedro13/e29034bf28323876e09c857bd47092a6 to your computer and use it in GitHub Desktop.
#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