Skip to content

Conversation

@ccollins476ad
Copy link
Contributor

@ccollins476ad ccollins476ad commented Oct 5, 2018

This PR adds the following functionality to the newt CLI tool:

Generate a per-package "shutdown" function. Allow packages to specify a function to call when the system shuts down. The syntax is:

        pkg.down:
            <C-function-name>: <stage>

The specified function is called when the application requests a shut down. Shut down functions are executed in ascending order.

Create a `stage` package.  This package emits C code consisting of
a sequence of function calls.
Allow packages to specify a function to call when the system shuts down.
The syntax is:

    pkg.down:
        <C-function-name>
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