Commit 926e2cf3 authored by Jason Rhinelander's avatar Jason Rhinelander
Browse files

Add PYBIND11_EXPAND_SIDE_EFFECTS macro

This allows calling of functions (typically void) over a parameter
pack, replacing usage such as:

    bool unused[] = { (voidfunc(param_pack_arg), false)..., false };
    (void) unused;

with a much cleaner:

    PYBIND11_EXPAND_SIDE_EFFECTS(voidfunc(param_pack_arg));
parent 4e1e4a58
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment