Skip to content

Emit prototypes for destructor functions in C Backend#7296

Merged
steven-johnson merged 1 commit intomainfrom
srj/destructors
Jan 19, 2023
Merged

Emit prototypes for destructor functions in C Backend#7296
steven-johnson merged 1 commit intomainfrom
srj/destructors

Conversation

@steven-johnson
Copy link
Copy Markdown
Contributor

We gathered up the destructors, but only emitted the prototypes if there was at least one non-C++ function declaration needed -- so if you built with cpp_name_mangling enabled, you might omit the right prototype. Fixed and added the right flag to a Generator test to tickle this behavior.

We gathered up the destructors, but only emitted the prototypes if there was at least one non-C++ function declaration needed -- so if you built with cpp_name_mangling enabled, you might omit the right prototype. Fixed and added the right flag to a Generator test to tickle this behavior.
@steven-johnson steven-johnson merged commit 51a4f6c into main Jan 19, 2023
@steven-johnson steven-johnson deleted the srj/destructors branch January 19, 2023 23:36
ardier pushed a commit to ardier/Halide-mutation that referenced this pull request Mar 3, 2024
We gathered up the destructors, but only emitted the prototypes if there was at least one non-C++ function declaration needed -- so if you built with cpp_name_mangling enabled, you might omit the right prototype. Fixed and added the right flag to a Generator test to tickle this behavior.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants