Skip to content

Switch to using cxa_atexit for static destruction#264

Merged
Vogtinator merged 1 commit into
ndless-nspire:masterfrom
Vogtinator:cxaatexit
Jan 23, 2021
Merged

Switch to using cxa_atexit for static destruction#264
Vogtinator merged 1 commit into
ndless-nspire:masterfrom
Vogtinator:cxaatexit

Conversation

@Vogtinator

Copy link
Copy Markdown
Contributor

Using the atexit mechanism for static object destruction is the only way to
ensure that it's correctly ordered as required by the standard. This way
they also run when calling exit instead of returning from main.

Using the atexit mechanism for static object destruction is the only way to
ensure that it's correctly ordered as required by the standard. This way
they also run when calling exit instead of returning from main.
@Vogtinator Vogtinator merged commit cbde0a8 into ndless-nspire:master Jan 23, 2021
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.

1 participant