mirror of
https://git.tesses.org/tesses50/crosslang.git
synced 2026-09-30 16:54:14 +00:00
Add thumbnailer support and TVMVersion and TFile are now accessable from language
This commit is contained in:
@@ -103,14 +103,14 @@ static json_t* Serialize2(SyntaxNode node)
|
||||
{
|
||||
char c = std::get<char>(node);
|
||||
json_t* json = json_object();
|
||||
json_object_set_new(json,"type",json_string(CharExpression.begin()));
|
||||
json_object_set_new(json,"type",json_string((const char*)CharExpression.data()));
|
||||
json_object_set_new(json, "value", json_integer((uint8_t)c));
|
||||
return json;
|
||||
}
|
||||
if(std::holds_alternative<Undefined>(node))
|
||||
{
|
||||
json_t* json = json_object();
|
||||
json_object_set_new(json,"type",json_string(UndefinedExpression.begin()));
|
||||
json_object_set_new(json,"type",json_string((const char*)UndefinedExpression.data()));
|
||||
return json;
|
||||
}
|
||||
|
||||
@@ -148,4 +148,4 @@ return str;
|
||||
return "";
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user