Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Only perform cleanup when exiting cleanly #288

Merged
merged 2 commits into from
May 16, 2021

Conversation

Vogtinator
Copy link
Contributor

In some circumstances, it's important to skip cleanup on exit, like in the case
of crash handlers and especially for resident programs.

Make luaextdemo use that feature.

See #287

In some circumstances, it's important to skip cleanup on exit, like in the case
of crash handlers and especially for resident programs.
Otherwise libc is deinitialized and calling printf crashes.
@Vogtinator Vogtinator merged commit 6d6fcd2 into ndless-nspire:master May 16, 2021
@Vogtinator Vogtinator deleted the luaexit branch May 16, 2021 14:11
@mael53
Copy link

mael53 commented May 16, 2021

Hello,
Thanks for your modifications.
Now, it does'nt crash but nothing is dispayed on screen (the "world" is not visible from luaextdemo.c)...
Thanks

@Vogtinator
Copy link
Contributor Author

Vogtinator commented May 16, 2021

Yes, that's the expected behaviour. hello world! is written to the serial console only.

If you want to display something, you'll either have to do so explicitly using the gc family of functions or do it from the lua script.

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.

2 participants