Skip to content

Commit

Permalink
fix: build error
Browse files Browse the repository at this point in the history
  • Loading branch information
neko-para committed Nov 23, 2024
1 parent c16d7b8 commit 0df8bfb
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions source/binding/NodeJS/src/include/wrapper.h
Original file line number Diff line number Diff line change
Expand Up @@ -546,14 +546,17 @@ struct JSWrapFunction
return std::tuple_cat(std::make_tuple(info.Env(), ctx.Data()), std::move(p));
}
else {
std::ignore = ctx;
return std::tuple_cat(std::make_tuple(info.Env()), std::move(p));
}
}
else {
std::ignore = info;
if constexpr (FuncTraits<Func>::want_ctx) {
return std::tuple_cat(std::make_tuple(ctx.Data()), std::move(p));
}
else {
std::ignore = ctx;
return p;
}
}
Expand Down

0 comments on commit 0df8bfb

Please sign in to comment.