Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site











SourceForge.net Logo

EventProxy

 

Callback to Callback

 

 

CallbackProxy.cpp

 

#include <Core/Core.h>

 

using namespace Upp;

 

void Foo()

{

    LOG("Foo");

}

 

void Bar()

{

    LOG("Bar");

}

 

CONSOLE_APP_MAIN

{

    Event<> a, b;

    a = Proxy(b);

    b = callback(Foo);

    a();

    b = callback(Bar);

    a();

}

 

 

 

 

Do you want to contribute?