mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-16 06:05:58 -06:00
28 lines
377 B
C++
28 lines
377 B
C++
#include <Core/Core.h>
|
|
|
|
using namespace Upp;
|
|
|
|
struct Foo {
|
|
int bar;
|
|
|
|
Foo() { bar = 0; }
|
|
};
|
|
|
|
bool TestFn(Gate1<Foo> gate)
|
|
{
|
|
LOG("In TestFn");
|
|
Foo foo;
|
|
return gate(foo);
|
|
}
|
|
|
|
bool TestGate(Foo x) {
|
|
LOG("In ReservationGate");
|
|
return true;
|
|
}
|
|
|
|
CONSOLE_APP_MAIN
|
|
{
|
|
StdLogSetup(LOG_COUT|LOG_FILE);
|
|
TestFn(TestGate);
|
|
// TestFn(callback(TestGate));
|
|
}
|