mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-26 22:32:46 +00:00
Adding some macros that allow me to start using literal strings
This commit is contained in:
parent
df67dbe077
commit
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__)
|
||||
|
Loading…
Reference in New Issue
Block a user