diff options
| author | ruki <[email protected]> | 2023-02-21 23:12:54 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2023-02-21 23:12:54 +0800 |
| commit | eec6de9e8b6456aa13b588ecce47af07fcfba965 (patch) | |
| tree | 4f76bf9ac5c745708d5494c1b3b61b6bbc2f6baa /xmake/core/main.lua | |
| parent | 94c2973e49202add48796a75f9b5f64f4f8bb6f1 (diff) | |
add os.atexit
Diffstat (limited to 'xmake/core/main.lua')
| -rw-r--r-- | xmake/core/main.lua | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/xmake/core/main.lua b/xmake/core/main.lua index 18ab0f62e..615df5355 100644 --- a/xmake/core/main.lua +++ b/xmake/core/main.lua @@ -207,6 +207,9 @@ end -- exit main program function main._exit(ok, errors) + -- run all exit callbacks + os._run_exit_cbs(ok, errors) + -- show errors local retval = 0 if not ok then |
