CXTPMarkupRoutedEvent* CXTPMarkupRoutedEvent::RegisterRoutedEvent(LPCWSTR lpszName, RoutingStrategy routingStrategy, CXTPMarkupType* pOwnerType) { CXTPMarkupRoutedEvent* pEvent = (CXTPMarkupRoutedEvent*)RegisterCommon(new CXTPMarkupRoutedEvent(), lpszName, MARKUP_TYPE(CXTPMarkupString), pOwnerType, FALSE); if (routingStrategy != routingDirect) { pEvent->m_pMetadata = new CXTPMarkupPropertyMetadata(NULL, routingStrategy); } return pEvent; }
void CScriptAppStress::RegisterCoreScript() { CScript* pScript = GetMainVM(); if( !RegisterModule(*pScript) ) GenErr("RegisterModule failed"); if( !RegisterCommon(*pScript) ) GenErr("RegisterCommon failed"); if( !RegisterCoreCommon(*pScript) ) GenErr("RegisterServer failed"); if( !RegisterNetwork(*pScript) ) GenErr("RegisterNetwork failed"); if( !RegisterCoreStress(*pScript) ) GenErr("RegisterClient failed"); }
void NodeMetaRef::RegisterClient(lua_State *L) { RegisterCommon(L); luaL_openlib(L, 0, methodsClient, 0); // fill methodtable lua_pop(L, 1); // drop methodtable }