diff options
author | Vito Caputo <vcaputo@pengaru.com> | 2020-04-20 14:00:17 -0700 |
---|---|---|
committer | Vito Caputo <vcaputo@pengaru.com> | 2020-04-20 14:00:17 -0700 |
commit | fc879e25fd4b45ec3520b4bd0cbfb4bec4ad1590 (patch) | |
tree | 731c4a8a3e510c886bb1177ae8b2002912b97bee /src/Makefile.am | |
parent | 020c6b59045f04b14a0898d2c373b6a09b39fe31 (diff) |
libstage: introduce 'adopt' flag to stage_conf_t
When set, this turns stage_new() into a stage_replace() against the
supplied parent.
So if you have an existing stage_t and you wish to turn it into
something else directly via stage_new(), simply pass it in as the
parent with the adopt flag set.
Previously it was rather contorted to do this kind of thing, and
kind of impossible really. This way avoids the allocation of the
new stage_t while preserving the usability of all existing components
build around the stage_new/stage_conf_t API.
This is kind of experimental and I haven't tested it yet, just a wart
I tripped over in the "sars" Blender 2020 project and wanted to do
something quick about before it falls off my radar as I'm busy with
unrelated things.
Diffstat (limited to 'src/Makefile.am')
0 files changed, 0 insertions, 0 deletions