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

add 'lastwarn' builtin #16

Closed
Nelson-numerical-software opened this issue Jan 6, 2017 · 1 comment
Closed

add 'lastwarn' builtin #16

Nelson-numerical-software opened this issue Jan 6, 2017 · 1 comment
Assignees
Milestone

Comments

@Nelson-numerical-software
Copy link
Collaborator

to return last warning message
warning('toto')

previous_warning_message = lastwarn()
lastwarn('toto') set last warning message
lastwarn('') to clear last warning

@Nelson-numerical-software
Copy link
Collaborator Author

'lastwarning' will be added later. (lastwarning will return also line position in file)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant