diff options
author | Jacek Antonelli | 2008-12-09 22:25:37 -0600 |
---|---|---|
committer | Jacek Antonelli | 2008-12-09 22:25:41 -0600 |
commit | 22b861982f2efd5d16097a012627e73b9fb85834 (patch) | |
tree | 6152a84b92c682e271bdd52d46cd1728454f679a /linden/indra/llcommon | |
parent | Second Life viewer sources 1.22.1-RC (diff) | |
download | meta-impy-22b861982f2efd5d16097a012627e73b9fb85834.zip meta-impy-22b861982f2efd5d16097a012627e73b9fb85834.tar.gz meta-impy-22b861982f2efd5d16097a012627e73b9fb85834.tar.bz2 meta-impy-22b861982f2efd5d16097a012627e73b9fb85834.tar.xz |
Second Life viewer sources 1.22.2-RC
Diffstat (limited to 'linden/indra/llcommon')
-rw-r--r-- | linden/indra/llcommon/llerror.cpp | 7 | ||||
-rw-r--r-- | linden/indra/llcommon/llerrorcontrol.h | 4 | ||||
-rw-r--r-- | linden/indra/llcommon/llversionviewer.h | 2 |
3 files changed, 10 insertions, 3 deletions
diff --git a/linden/indra/llcommon/llerror.cpp b/linden/indra/llcommon/llerror.cpp index 5c7c3cd..487907f 100644 --- a/linden/indra/llcommon/llerror.cpp +++ b/linden/indra/llcommon/llerror.cpp | |||
@@ -1170,6 +1170,10 @@ namespace LLError | |||
1170 | return s.shouldLogCallCounter; | 1170 | return s.shouldLogCallCounter; |
1171 | } | 1171 | } |
1172 | 1172 | ||
1173 | #if LL_WINDOWS | ||
1174 | // VC80 was optimizing the error away. | ||
1175 | #pragma optimize("", off) | ||
1176 | #endif | ||
1173 | void crashAndLoop(const std::string& message) | 1177 | void crashAndLoop(const std::string& message) |
1174 | { | 1178 | { |
1175 | // Now, we go kaboom! | 1179 | // Now, we go kaboom! |
@@ -1182,6 +1186,9 @@ namespace LLError | |||
1182 | // Loop forever, in case the crash didn't work? | 1186 | // Loop forever, in case the crash didn't work? |
1183 | } | 1187 | } |
1184 | } | 1188 | } |
1189 | #if LL_WINDOWS | ||
1190 | #pragma optimize("", on) | ||
1191 | #endif | ||
1185 | 1192 | ||
1186 | std::string utcTime() | 1193 | std::string utcTime() |
1187 | { | 1194 | { |
diff --git a/linden/indra/llcommon/llerrorcontrol.h b/linden/indra/llcommon/llerrorcontrol.h index 2c36871..a97abef 100644 --- a/linden/indra/llcommon/llerrorcontrol.h +++ b/linden/indra/llcommon/llerrorcontrol.h | |||
@@ -82,9 +82,9 @@ namespace LLError | |||
82 | Control functions. | 82 | Control functions. |
83 | */ | 83 | */ |
84 | 84 | ||
85 | typedef void (*FatalFunction)(const std::string& message); | 85 | typedef void(*FatalFunction)(const std::string& message); |
86 | void crashAndLoop(const std::string& message); | 86 | void crashAndLoop(const std::string& message); |
87 | // Default fatal funtion: divides by zero and loops forever | 87 | // Default fatal funtion: access null pointer and loops forever |
88 | 88 | ||
89 | void setFatalFunction(FatalFunction); | 89 | void setFatalFunction(FatalFunction); |
90 | // The fatal function will be called when an message of LEVEL_ERROR | 90 | // The fatal function will be called when an message of LEVEL_ERROR |
diff --git a/linden/indra/llcommon/llversionviewer.h b/linden/indra/llcommon/llversionviewer.h index 6ff2604..e027fad 100644 --- a/linden/indra/llcommon/llversionviewer.h +++ b/linden/indra/llcommon/llversionviewer.h | |||
@@ -34,7 +34,7 @@ | |||
34 | 34 | ||
35 | const S32 LL_VERSION_MAJOR = 1; | 35 | const S32 LL_VERSION_MAJOR = 1; |
36 | const S32 LL_VERSION_MINOR = 22; | 36 | const S32 LL_VERSION_MINOR = 22; |
37 | const S32 LL_VERSION_PATCH = 1; | 37 | const S32 LL_VERSION_PATCH = 2; |
38 | const S32 LL_VERSION_BUILD = 0; | 38 | const S32 LL_VERSION_BUILD = 0; |
39 | 39 | ||
40 | const char * const LL_CHANNEL = "Second Life Release"; | 40 | const char * const LL_CHANNEL = "Second Life Release"; |