Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions clingwrapper/src/clingwrapper.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -677,8 +677,7 @@ bool Cppyy::AppendTypesSlow(const std::string& name,
Cpp::Declare(code.c_str(), /*silent=*/true); // initialize the trampoline

std::string var = "__Cppyy_s" + std::to_string(struct_count++);
// FIXME: We cannot use silent because it erases our error code from Declare!
if (!Cpp::Declare(("__Cppyy_AppendTypesSlow<" + resolved_name + "> " + var +";\n").c_str(), /*silent=*/false)) {
if (!Cpp::Declare(("__Cppyy_AppendTypesSlow<" + resolved_name + "> " + var +";\n").c_str(), /*silent=*/true)) {
std::lock_guard<std::recursive_mutex> Lock(InterOpMutex);
TCppType_t varN =
Cpp::GetVariableType(Cpp::GetNamed(var.c_str(), /*parent=*/nullptr));
Expand Down
Loading