зеркало из https://github.com/mozilla/gecko-dev.git
Added the #define for turning on the default messages. Not sure if this is
the right place for it, but I wanted to get it in before the merge-a-thon.
This commit is contained in:
Родитель
1add701f7f
Коммит
4f81e38cf9
|
@ -301,8 +301,13 @@ jsj_LogError(const char *error_msg)
|
||||||
jsj_GetErrorMessage is invoked by the engine whenever it wants
|
jsj_GetErrorMessage is invoked by the engine whenever it wants
|
||||||
to convert an error number into an error format string.
|
to convert an error number into an error format string.
|
||||||
*/
|
*/
|
||||||
|
/*
|
||||||
|
this define needs to go somewhere sensible
|
||||||
|
*/
|
||||||
|
#define JSJ_HAS_DFLT_MSG_STRINGS 1
|
||||||
|
|
||||||
JSErrorFormatString jsj_ErrorFormatString[JSJ_Err_Limit] = {
|
JSErrorFormatString jsj_ErrorFormatString[JSJ_Err_Limit] = {
|
||||||
#if JS_HAS_DFLT_MSG_STRINGS
|
#if JSJ_HAS_DFLT_MSG_STRINGS
|
||||||
#define MSG_DEF(name, number, count, format) \
|
#define MSG_DEF(name, number, count, format) \
|
||||||
{ format, count } ,
|
{ format, count } ,
|
||||||
#else
|
#else
|
||||||
|
|
Загрузка…
Ссылка в новой задаче