зеркало из https://github.com/mozilla/gecko-dev.git
Adding some macros that allow me to start using literal strings
This commit is contained in:
Родитель
df67dbe077
Коммит
53eaa359c9
|
@ -1104,4 +1104,8 @@ typedef basic_nsAReadableString<char> nsAReadableCString;
|
|||
typedef basic_nsLiteralString<PRUnichar> nsLiteralString;
|
||||
typedef basic_nsLiteralString<char> nsLiteralCString;
|
||||
|
||||
#define NS_LITERAL_STRING(s) nsLiteralString(s, sizeof(s)/sizeof(wchar_t))
|
||||
#define NS_LITERAL_CSTRING(s) nsLiteralCString(s, sizeof(s))
|
||||
|
||||
|
||||
#endif // !defined(_nsAReadableString_h__)
|
||||
|
|
|
@ -1104,4 +1104,8 @@ typedef basic_nsAReadableString<char> nsAReadableCString;
|
|||
typedef basic_nsLiteralString<PRUnichar> nsLiteralString;
|
||||
typedef basic_nsLiteralString<char> nsLiteralCString;
|
||||
|
||||
#define NS_LITERAL_STRING(s) nsLiteralString(s, sizeof(s)/sizeof(wchar_t))
|
||||
#define NS_LITERAL_CSTRING(s) nsLiteralCString(s, sizeof(s))
|
||||
|
||||
|
||||
#endif // !defined(_nsAReadableString_h__)
|
||||
|
|
|
@ -1104,4 +1104,8 @@ typedef basic_nsAReadableString<char> nsAReadableCString;
|
|||
typedef basic_nsLiteralString<PRUnichar> nsLiteralString;
|
||||
typedef basic_nsLiteralString<char> nsLiteralCString;
|
||||
|
||||
#define NS_LITERAL_STRING(s) nsLiteralString(s, sizeof(s)/sizeof(wchar_t))
|
||||
#define NS_LITERAL_CSTRING(s) nsLiteralCString(s, sizeof(s))
|
||||
|
||||
|
||||
#endif // !defined(_nsAReadableString_h__)
|
||||
|
|
Загрузка…
Ссылка в новой задаче