mirror of
https://onedev.site.tesses.net/crosslang
synced 2026-03-26 05:50:20 +00:00
Fix MetadataDecode name and fix compiler error with ci
This commit is contained in:
@@ -145,7 +145,7 @@ namespace Tesses::CrossLang
|
||||
bytes.push_back(std::get<bool>(n) ? 1 : 0);
|
||||
return;
|
||||
}
|
||||
if(std::holds_alternative<nullptr_t>(n))
|
||||
if(std::holds_alternative<std::nullptr_t>(n))
|
||||
{
|
||||
bytes.push_back(2);
|
||||
return;
|
||||
|
||||
@@ -1467,7 +1467,7 @@ namespace Tesses::CrossLang
|
||||
{
|
||||
body = ParseNode();
|
||||
}
|
||||
if(std::holds_alternative<nullptr_t>(item))
|
||||
if(std::holds_alternative<std::nullptr_t>(item))
|
||||
item = AdvancedSyntaxNode::Create(DeclareExpression,true, {
|
||||
AdvancedSyntaxNode::Create(GetVariableExpression,true,{"item"})
|
||||
});
|
||||
|
||||
@@ -118,7 +118,7 @@ namespace Tesses::CrossLang
|
||||
throw VMException(errorMessage);
|
||||
}
|
||||
|
||||
TDictionary* TFile::DecodeMetadata(GCList& ls, size_t midx)
|
||||
TDictionary* TFile::MetadataDecode(GCList& ls, size_t midx)
|
||||
{
|
||||
if(midx >= this->metadata.size()) return nullptr;
|
||||
if(this->metadata[midx].second.empty()) return nullptr;
|
||||
|
||||
@@ -4337,7 +4337,7 @@ namespace Tesses::CrossLang {
|
||||
int64_t index;
|
||||
if(GetArgument(args,0, index) && (size_t)index < file->metadata.size())
|
||||
{
|
||||
cse.back()->Push(gc,file->DecodeMetadata(ls,(size_t)index));
|
||||
cse.back()->Push(gc,file->MetadataDecode(ls,(size_t)index));
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user