Displaying 1 result from an estimated 1 matches for "usemycallback".
Did you mean:
usecallback
2010 Jun 04
3
[LLVMdev] Is there a "callback optimization"?
...ublic and dead.
void useCallback(void (*callbackfn)())
{
// Do something
callbackfn();
// Do something else
}
void myCallback()
{
// Respond one way
}
void myOtherCallback()
{
// Respond another way
}
// equivalent of useCallback(myCallback), but doesn't call through a
function pointer.
void useMyCallback()
{
// Do something.
myCallback();
// Do something else
}
// equivalent of useCallback(myOtherCallback), but doesn't call
through a function pointer.
void useMyOtherCallback()
{
// Do something
myOtherCallback();
// Do something else
}
// Changed to use non-virtual versions created above.
voi...