Dear library developers,
Posted on:May 30 2005
It's nice that you all create your libraries and provide functions for registering C function callbacks. But please, PLEASE, would you be so kind and add one additional senseless userdata int to your callback which will be set by the library user when registering the callback and will be provided when your library calls the callback? Would be so sweet.
Why I need this? I'm using C++, not C. With that int, I would be able to get the instance of the object for that callback. Without such a user data parameter, I am not able to do this in an easy way. Lots of libraries are already providing such a parameter. But a lot of libraries are not. Would be cool if they did.
|Link ||[url] www.example.com [/url] |
|Bold ||[b]bold text[/b] |
|Quote ||[quote]quoted text[/quote] |
|Code ||[code]source code[/code] |