本文整理汇总了C++中Executable::set_executor方法的典型用法代码示例。如果您正苦于以下问题:C++ Executable::set_executor方法的具体用法?C++ Executable::set_executor怎么用?C++ Executable::set_executor使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Executable
的用法示例。
在下文中一共展示了Executable::set_executor方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: allocate
Executable* Executable::allocate(STATE, Object* self) {
Executable* executable = state->new_object<Executable>(G(executable));
executable->primitive(state, (Symbol*)Qnil);
executable->serial(state, Fixnum::from(0));
executable->set_executor(Executable::default_executor);
if(kind_of<Class>(self)) {
state->om->set_class(executable, self);
}
return executable;
}
示例2: allocate
Executable* Executable::allocate(STATE, Object* self) {
Executable* executable = state->new_object<Executable>(G(executable));
executable->primitive(state, nil<Symbol>());
executable->serial(state, Fixnum::from(0));
executable->inliners_ = 0;
executable->prim_index_ = -1;
executable->set_executor(Executable::default_executor);
if(Class* cls = try_as<Class>(self)) {
executable->klass(state, cls);
}
return executable;
}