ultimatepp/reference/EventProxy/CallbackProxy.cpp
cxl 8894d91ff4 .reference
git-svn-id: svn://ultimatepp.org/upp/trunk@9799 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2016-05-04 17:36:13 +00:00

23 lines
231 B
C++

#include <Core/Core.h>
using namespace Upp;
void Foo()
{
LOG("Foo");
}
void Bar()
{
LOG("Bar");
}
CONSOLE_APP_MAIN
{
Callback a, b;
a = Proxy(b);
b = callback(Foo);
a();
b = callback(Bar);
a();
}