Skip to content

Commit 0eaf520

Browse files
committed
fix: 2025/10/26 功能冻结缺陷修复;
1 parent 1ca1ca0 commit 0eaf520

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

72 files changed

+2035
-1418
lines changed

3rdparty/as-debugger/as_debugger.cpp

Lines changed: 16 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -196,67 +196,59 @@ void asIDBScope::CalcLocals(asIDBDebugger &dbg, asIScriptFunction *function,
196196
return f->second;
197197

198198
auto type = ctx->GetEngine()->GetTypeInfoById(id.typeId);
199-
std::string rawName;
199+
std::string name;
200200

201201
if (!type) {
202202
// a primitive
203203
switch (id.typeId & asTYPEID_MASK_SEQNBR) {
204204
case asTYPEID_BOOL:
205-
rawName = "bool";
205+
name = "bool";
206206
break;
207207
case asTYPEID_INT8:
208-
rawName = "int8";
208+
name = "int8";
209209
break;
210210
case asTYPEID_INT16:
211-
rawName = "int16";
211+
name = "int16";
212212
break;
213213
case asTYPEID_INT32:
214-
rawName = "int32";
214+
name = "int32";
215215
break;
216216
case asTYPEID_INT64:
217-
rawName = "int64";
217+
name = "int64";
218218
break;
219219
case asTYPEID_UINT8:
220-
rawName = "uint8";
220+
name = "uint8";
221221
break;
222222
case asTYPEID_UINT16:
223-
rawName = "uint16";
223+
name = "uint16";
224224
break;
225225
case asTYPEID_UINT32:
226-
rawName = "uint32";
226+
name = "uint32";
227227
break;
228228
case asTYPEID_UINT64:
229-
rawName = "uint64";
229+
name = "uint64";
230230
break;
231231
case asTYPEID_FLOAT:
232-
rawName = "float";
232+
name = "float";
233233
break;
234234
case asTYPEID_DOUBLE:
235-
rawName = "double";
235+
name = "double";
236236
break;
237237
default:
238-
rawName = "???";
238+
name = "???";
239239
break;
240240
}
241241
} else {
242242
auto ns = type->GetNamespace();
243243
if (ns && strlen(ns)) {
244-
rawName = fmt::format("{}::{}", ns, type->GetName());
244+
name = fmt::format("{}::{}", ns, type->GetName());
245245
} else {
246-
rawName = type->GetName();
246+
name = type->GetName();
247247
}
248248
}
249249

250-
std::string name = fmt::format(
251-
"{}{}{}{}", (id.modifiers & asTM_CONST) ? "const " : "", rawName,
252-
(id.typeId & (asTYPEID_HANDLETOCONST | asTYPEID_OBJHANDLE)) ? "@" : "",
253-
((id.modifiers & asTM_INOUTREF) == asTM_INOUTREF) ? "&"
254-
: ((id.modifiers & asTM_INOUTREF) == asTM_INREF) ? "&in"
255-
: ((id.modifiers & asTM_INOUTREF) == asTM_OUTREF) ? "&out"
256-
: "");
257-
258250
type_names.emplace(id, name);
259-
return type_names.at(id);
251+
return name;
260252
}
261253

262254
void *asIDBCache::ResolvePropertyAddress(const asIDBVarAddr &id,

images/angelrestart.png

21 KB
Loading

0 commit comments

Comments
 (0)