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

undeclared identifier: 'data' when using setCallback template #4

Open
benob opened this issue Nov 22, 2021 · 0 comments
Open

undeclared identifier: 'data' when using setCallback template #4

benob opened this issue Nov 22, 2021 · 0 comments

Comments

@benob
Copy link

benob commented Nov 22, 2021

setCallback assumes the existence of a data variable which is passed to the callback:

check_status monitor.session.fsw_set_callback(innercallback, addr data)

A temporary fix is to declare a variable named data in the scope where setCallback is called.

var data = ""
monitor.setCallback(callback)
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

No branches or pull requests

1 participant