Replies: 1 comment
-
Do you have more information on the crash? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
void ExportSymbols(std::vectorstd::string &symbols)
{
auto CustomSymbols_json = json::parse(R"({"CustomSymbols":[{"ConfigSymbols":[]}]})");
for (auto &&symbol : symbols)
CustomSymbols_json["CustomSymbols"].at(0)["ConfigSymbols"].push_back({{"Path", std::string{"Custom\" + symbol}}, {"Symbol", symbol}});
std::wofstream fout("./CustomSymbols.json"); // wide output stream
fout.imbue(std::locale(
fout.getloc(),
new std::codecvt_utf16<wchar_t, 0x10ffff, std::little_endian>));
unsigned char bom[] = {0xFF, 0xFE};
fout.write((wchar_t *)bom, sizeof(bom) / 2);
fout << CustomSymbols_json.dump().c_str();
}
Beta Was this translation helpful? Give feedback.
All reactions