We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 77f486e commit da671a9Copy full SHA for da671a9
1 file changed
cpp2rust/converter/converter.cpp
@@ -1407,8 +1407,8 @@ std::optional<std::string> Converter::TryPluginConvert(clang::CallExpr *call) {
1407
}
1408
1409
void Converter::ConvertVariadicArg(clang::Expr *arg) {
1410
+ PushParen p(*this);
1411
if (arg->getType()->isFunctionPointerType()) {
- PushParen p(*this);
1412
Convert(arg);
1413
StrCat(".map_or(::std::ptr::null_mut(), |f| f as *mut ::libc::c_void)");
1414
return;
0 commit comments