示例#1
0
Connection Signal<Arguments...>::connect(Signal& signal) const
{
	return connect([&signal](Arguments... arguments) 
	{
		signal.fire(arguments...);
	});
}
示例#2
0
Handle<Value> Signal_Fire(const Arguments& args)
{
    HandleScope handle_scope;

    Signal* self = GetPtr(args.This());
    assert(self);

    Variant* pValue = 0;

    if (args.Length() == 1)
        pValue = fromJSVariant(args[0]);

    self->fire(pValue);

    return Handle<Value>();
}