void java_bytecode_parsert::rmethods(classt &parsed_class) { u2 methods_count=read_u2(); for(std::size_t j=0; j<methods_count; j++) rmethod(parsed_class); }
sampleAPI::sampleAPI(const FB::BrowserHostPtr& host) : m_host(host) { printf("sampleAPI instance\n"); // Register exported methods rmethod(test); // Register properties rproperty(x); }
void RDynamicSlot::call(QObject *sender, void **arguments) { Q_UNUSED(sender); SEXP user_data = object->userData(), function = object->function(); MocMethod method = object->method(); QVector<SmokeType> stackTypes = method.types(); MocStack mocStack = MocStack(arguments, stackTypes.size()); SmokeStack smokeStack = mocStack.toSmoke(stackTypes); RMethod rmethod(NULL, NULL, function, stackTypes, user_data); rmethod.invoke(NULL, smokeStack.items()); mocStack.returnFromSmoke(smokeStack, stackTypes[0]); }
VideoWindowAPI::VideoWindowAPI(const linphonePtr& plugin, const FB::BrowserHostPtr& host) : m_plugin(plugin), m_host(host) { printf("VideoWindowAPI instance\n"); // Register exported methods rmethod(test); // Register properties rproperty(x); rpropertyg(pluginWindowId); }