зеркало из https://github.com/mozilla/pjs.git
Adding some macros that allow me to start using literal strings
This commit is contained in:
Родитель
aec725293d
Коммит
e34e046ae4
|
@ -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__)
|
||||
|
|
Загрузка…
Ссылка в новой задаче