Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #pragma once
- #ifndef STRING
- #define STRING(quote) quote
- #endif
- #ifndef WSTRING
- #define WSTRING(quote) L ## quote
- #endif
- #ifndef UTF8_STRING
- #define UTF8_STRING(quote) u8 ## quote
- #endif
- #ifndef UTF16_STRING
- #define UTF16_STRING(quote) u ## quote
- #endif
- #ifndef UTF32_STRING
- #define UTF32_STRING(quote) U ## quote
- #endif
- #ifndef STR
- #define STR STRING
- #define S STRING
- #endif
- #ifndef WSTR
- #define WSTR WSTRING
- #define W WSTRING
- #endif
- #ifndef UTF8
- #define UTF8 UTF8_STRING
- #define U8 UTF8_STRING
- #endif
- #ifndef UTF16
- #define UTF16 UTF16_STRING
- #define U16 UTF16_STRING
- #endif
- #ifndef UTF32
- #define UTF32 UTF32_STRING
- #define U32 UTF32_STRING
- #endif
- /*
- S("string") → "string"
- W("string") → L"string"
- U8("string") → u8"string"
- U16("string") → u"string"
- U32("string") → U"string"
- */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement