Adding some macros that allow me to start using literal strings

This commit is contained in:
scc%netscape.com 2000-03-28 22:37:51 +00:00
parent df67dbe077
commit 53eaa359c9
3 changed files with 12 additions and 0 deletions

View File

@ -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__)

View File

@ -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__)

View File

@ -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__)