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

Hand over arguments to the callback function #24

Open
probonopd opened this issue Apr 16, 2023 · 2 comments
Open

Hand over arguments to the callback function #24

probonopd opened this issue Apr 16, 2023 · 2 comments

Comments

@probonopd
Copy link

In #9, someone asked how to specify arguments to the called function.

Another question: is there a way to overgive arguments to the called function?

Martin-Laclaustra commented on Dec 31, 2020
You could create member variables in your class that can be accessed from the called function.
Changing the called function signature would require changes to the library code.

Can you please give an example how to do that?

@karelv
Copy link

karelv commented Jan 20, 2024

+1

@Martin-Laclaustra
Copy link
Owner

I do not understand the question. If you create a class and pass the pointer of your class function to cronalarms, such function could access any member variable of your class.

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

3 participants