CScriptbind_GameRules::CScriptbind_GameRules() { REGISTER_METHOD(RegisterGameMode); REGISTER_METHOD(AddGameModeAlias); REGISTER_METHOD(AddGameModeLevelLocation); REGISTER_METHOD(SetDefaultGameMode); }
CScriptbind_Network::CScriptbind_Network() { REGISTER_METHOD(RemoteInvocation); REGISTER_METHOD(IsMultiplayer); REGISTER_METHOD(IsServer); REGISTER_METHOD(IsClient); }
void physobj::REGISTER_SCRIPTABLES(qScriptEngine *engine) { REGISTER_CLASS(engine, "physobj", physobj); REGISTER_METHOD(engine, "physobj", physobj, "void render()", getX); REGISTER_METHOD(engine, "physobj", physobj, "void AddRef()", Addref); //Addref }
INT16 CDgen::AutoRegisterWords() { DEBUGMSG(-1,"CDgen::AutoRegisterWords",0,0,0); IF_NOK(inherited::AutoRegisterWords()) return NOT_EXEC; //{{CGEN_REGISTERWORDS // Register methods REGISTER_METHOD("-edit_section","",LPMF(CDgen,OnEditSection),"Edits text between two markers in generated document.",0,"<string sMarkOn> <string sMarkOff> <data idText> <string sOpname> <DGen this>","") REGISTER_METHOD("-load","",LPMF(CDgen,OnLoad),"Load document template.",0,"<string sFilename> <DGen this>","") REGISTER_METHOD("-parse","",LPMF(CDgen,OnParse),"Parse token sequence (field tsq)",0,"<string sParser> <fst itDeps> <int nFtok> <int nLtok> <DGen this>","") REGISTER_METHOD("-scan","",LPMF(CDgen,OnScan),"For convenience: -tokenize plus -parse",0,"<string sFilename> <string sParser> <fst itDeps> <DGen this>","") REGISTER_METHOD("-setup","",LPMF(CDgen,OnSetup),"Load default parameter set for given parser",0,"<string sParser> <DGen this>","") REGISTER_METHOD("-table","",LPMF(CDgen,OnTable),"Adds table data to HTML page",0,"<data idTable> <string sPre> <string sDel> <string sSuf> <DGen this>","") REGISTER_METHOD("-tokenize","",LPMF(CDgen,OnTokenize),"Tokenize source file",0,"<string sFilename> <DGen this>","") REGISTER_METHOD("-write","",LPMF(CDgen,OnWrite),"Write HTML page to file",0,"<string sFilename> <DGen this>","") REGISTER_METHOD("<%","",LPMF(CDgen,HereScript),"Add HTML code (here script) to HTML page",0,"<DGen this>","... %>") REGISTER_METHOD(">>","",LPMF(CDgen,OnAddText),"Add text to HTML page",0,"<string sText> <DGen this>","") // Register options REGISTER_OPTION("/bare","",LPMV(m_bBare),NULL,"Ignore prefixes and suffixes.",0) // Register fields REGISTER_FIELD("bcmtoff","",LPMV(m_lpsBcmtoff),NULL,"Block comment mark (end)",0,8,8,"char[8]","") REGISTER_FIELD("bcmton","",LPMV(m_lpsBcmton),NULL,"Block comment mark (start)",0,8,8,"char[8]","") REGISTER_FIELD("chrs","",LPMV(m_bChrs),NULL,"Get character strings in single quotation marks as tokens.",0,2002,1,"short",(INT16)TRUE) REGISTER_FIELD("dcmt","",LPMV(m_lpsDcmt),NULL,"Documentation comment",0,8,8,"char[8]","##") REGISTER_FIELD("dom","",LPMV(m_idDom),NULL,"Document object model",FF_NOSET,6002,1,"data",NULL) REGISTER_FIELD("drct","",LPMV(m_lpsDrct),NULL,"Compiler directive (entire line will be one token)",0,8,8,"char[8]","") REGISTER_FIELD("filename","",LPMV(m_lpsFilename),NULL,"Most recently tokenized file",FF_NOSET,255,255,"char[255]","") REGISTER_FIELD("gen","",LPMV(m_idGen),NULL,"Generated document",FF_NOSET,6002,1,"data",NULL) REGISTER_FIELD("grany","",LPMV(m_nGrany),NULL,"Memory allocation granularity",FF_NOSET,2004,1,"int",(INT32)100) REGISTER_FIELD("idel","",LPMV(m_lpsIdel),LPMF(CDgen,OnIdelChanged),"Insignificant token delimiter characters",0,64,64,"char[64]"," \t") REGISTER_FIELD("lcmt","",LPMV(m_lpsLcmt),NULL,"One line comment mark ('til end of line)",0,8,8,"char[8]","#") REGISTER_FIELD("sdel","",LPMV(m_lpsSdel),LPMF(CDgen,OnSdelChanged),"Significant token delimiter characters",0,64,64,"char[64]","") REGISTER_FIELD("spl","",LPMV(m_idSpl),NULL,"Source property list (key-value pairs)",FF_NOSET,6002,1,"data",NULL) REGISTER_FIELD("strs","",LPMV(m_bStrs),NULL,"Get character strings in double quotation marks as tokens.",0,2002,1,"short",(INT16)TRUE) REGISTER_FIELD("tsq","",LPMV(m_idTsq),NULL,"Token sequence",FF_NOSET,6002,1,"data",NULL) REGISTER_FIELD("txt","",LPMV(m_idTxt),NULL,"Documentation texts",FF_NOSET,6002,1,"data",NULL) // Register errors REGISTER_ERROR("~e1_0_0__1",EL_ERROR,DG_TOOFEWCOMPS,"Node table of instance '%s' has too few components.") REGISTER_ERROR("~e2_0_0__1",EL_ERROR,DG_NOTSYMBCOMPTYPE,"Node component %ld of instance '%s' must be symbolic.") REGISTER_ERROR("~e3_0_0__1",EL_WARNING,DG_TOOLONG,"%s(%ld): %s too long.") REGISTER_ERROR("~e4_0_0__1",EL_WARNING,DG_TOOLONG2,"%s '%s' too long (max. %ld characters).") REGISTER_ERROR("~e5_0_0__1",EL_ERROR,DG_HERESCRIPT,"Unexpected end of file scanning for '%s'.") REGISTER_ERROR("~e6_0_0__1",EL_ERROR,DG_STREXCEEDSLINE,"String constant exceeds line.") REGISTER_ERROR("~e7_0_0__1",EL_ERROR,DG_PARSER,"Parser '%s' unknown.") REGISTER_ERROR("~e8_0_0__1",EL_ERROR,DG_OPCODE,"'%s' is not a valid %s operation.") REGISTER_ERROR("~e9_0_0__1",EL_ERROR,DG_SYNTAX,"Syntax error.") REGISTER_ERROR("~e0_1_0__1",EL_ERROR,DG_SYNTAX2,"Syntax error (%s).") REGISTER_ERROR("~e1_1_0__1",EL_ERROR,DG_EXPECT,"Expect %s.") REGISTER_ERROR("~e2_1_0__1",EL_ERROR,DG_AWOB,"%s without matching %s.") REGISTER_ERROR("~e3_1_0__1",EL_ERROR,DG_JVD,"JavaDoc %s %s %s.") //}}CGEN_REGISTERWORDS return O_K; }
CScriptbind_ParticleSystem::CScriptbind_ParticleSystem() { m_pParticleManager = gEnv->p3DEngine->GetParticleManager(); REGISTER_METHOD(FindEffect); REGISTER_METHOD(Spawn); REGISTER_METHOD(Remove); REGISTER_METHOD(LoadResources); }
/// called by Register(), registers object-methods (see cLuaBind constructor for examples) virtual void RegisterMethods (lua_State *L) { PROFILE #define REGISTER_METHOD(methodname) mlMethod.push_back(make_luaL_reg(#methodname,&cBitMask_L::methodname)); REGISTER_METHOD(Destroy); REGISTER_METHOD(GetSize); REGISTER_METHOD(GetWrap); REGISTER_METHOD(SetWrap); REGISTER_METHOD(TestBit); }
CScriptbind_Debug::CScriptbind_Debug() { REGISTER_METHOD(AddPersistentSphere); REGISTER_METHOD(AddDirection); REGISTER_METHOD(AddPersistentText2D); REGISTER_METHOD(AddPersistentLine); REGISTER_METHOD(AddAABB); }
bool nsScriptableObjectOverwolfSample::Init() { REGISTER_METHOD("echo", nsScriptableObjectOverwolfSample::Echo); REGISTER_METHOD("add", nsScriptableObjectOverwolfSample::Add); sample_property_ = 42; thread_.reset(new utils::Thread()); return thread_->Start(); }
CScriptbind_ScriptTable::CScriptbind_ScriptTable() { REGISTER_METHOD(GetScriptTable); REGISTER_METHOD(GetSubScriptTable); REGISTER_METHOD(CallMethod); REGISTER_METHOD(GetValue); REGISTER_METHOD(ExecuteBuffer); }
/// called by Register(), registers object-methods (see cLuaBind constructor for examples) virtual void RegisterMethods (lua_State *L) { PROFILE #define REGISTER_METHOD(methodname) mlMethod.push_back(make_luaL_reg(#methodname,&cViewport_L::methodname)); REGISTER_METHOD(Destroy); REGISTER_METHOD(SetOverlaysEnabled); REGISTER_METHOD(GetActualWidth); REGISTER_METHOD(GetActualHeight); REGISTER_METHOD(SetBackCol); lua_register(L,"CreateRTTViewport", &cViewport_L::CreateRTTViewport); lua_register(L,"GetMainViewport", &cViewport_L::GetMainViewport); }
INT16 CLPCproc::AutoRegisterWords() { DEBUGMSG(-1,"CLPCproc::AutoRegisterWords",0,0,0); IF_NOK(inherited::AutoRegisterWords()) return NOT_EXEC; //{{CGEN_REGISTERWORDS REGISTER_METHOD("-analyze","",LPMF(CLPCproc,OnAnalyze),"Run LPC analysis.",0,"<data idSignal> <data idPitch> <data idReal> <data idImag> <LPCproc this>","") REGISTER_METHOD("-status","",LPMF(CLPCproc,Status),"Display status information.",0,"<LPCproc this>","") REGISTER_FIELD("coeff","",LPMV(m_nCoeff),NULL,"Number of LPC coefficients.",0,2002,1,"short",(INT16)50) REGISTER_FIELD("mem_lpc","",LPMV(m_lpMemLpc),NULL,"synthesis filter states",FF_HIDDEN | FF_NOSAVE,6000,1,"double*",NULL) //}}CGEN_REGISTERWORDS return O_K; }
extern "C" int main(void) { // create a class with the given name: gmu_bufgranul::makeMaxClass("gmu.bufgranul~"); //REGISTER_METHOD(gmu_bufgranul, bang); REGISTER_METHOD_GIMME(gmu_bufgranul, grain); REGISTER_METHOD_GIMME(gmu_bufgranul, spat); REGISTER_METHOD_GIMME(gmu_bufgranul, env); REGISTER_METHOD_GIMME(gmu_bufgranul, buffer); REGISTER_METHOD(gmu_bufgranul, clear); REGISTER_METHOD(gmu_bufgranul, infos); post("Copyright © 2011 gmu.bufgranul~ v3.0 RifRaf GMEM Marseille F") ; post("build %s %s",__DATE__,__TIME__); }
CScriptbind_Physics::CScriptbind_Physics() { REGISTER_METHOD(GetPhysicalEntity); REGISTER_METHOD(GetPhysicalEntityType); REGISTER_METHOD(Physicalize); REGISTER_METHOD(Sleep); REGISTER_METHOD(GetVelocity); REGISTER_METHOD(SetVelocity); REGISTER_METHOD(RayWorldIntersection); REGISTER_METHOD(SimulateExplosion); REGISTER_METHOD_NAME(PhysicalEntityAction, "ActionImpulse"); REGISTER_METHOD_NAME(GetPhysicalEntityStatus, "GetLivingEntityStatus"); REGISTER_METHOD_NAME(GetPhysicalEntityStatus, "GetDynamicsEntityStatus"); REGISTER_METHOD_NAME(SetPhysicalEntityParams, "SetParticleParams"); REGISTER_METHOD_NAME(GetPhysicalEntityParams, "GetParticleParams"); REGISTER_METHOD_NAME(SetPhysicalEntityParams, "SetFlagParams"); REGISTER_METHOD_NAME(GetPhysicalEntityParams, "GetFlagParams"); REGISTER_METHOD_NAME(SetPhysicalEntityParams, "SetSimulationParams"); REGISTER_METHOD_NAME(GetPhysicalEntityParams, "GetSimulationParams"); }
INT16 CCPproc::AutoRegisterWords() { DEBUGMSG(-1,"CCPproc::AutoRegisterWords",0,0,0); IF_NOK(inherited::AutoRegisterWords()) return NOT_EXEC; //{{CGEN_REGISTERWORDS REGISTER_METHOD("-analyze","",LPMF(CCPproc,OnAnalyze),"Run cepstral analysis.",0,"<data idSignal> <data idPitch> <data idReal> <data idImag> <CPproc this>","") REGISTER_METHOD("-dequantize","",LPMF(CCPproc,Dequantize),"This is the inverse of -quantize.",0,"<data idFea> <int first> <int count> <int bitwidth> <CPproc this>","") REGISTER_METHOD("-quantize","",LPMF(CCPproc,Quantize),"Feature dependent quantization for (lossy) converting to fixpoint type of specified bit width.",0,"<data idFea> <int first> <int count> <int bitwidth> <CPproc this>","") REGISTER_METHOD("-status","",LPMF(CCPproc,Status),"Display status information.",0,"<CPproc this>","") REGISTER_FIELD("warptype","",LPMV(m_lpsWarptype),NULL,"Type of cepstral warping.",0,255,255,"char[255]","none") REGISTER_ERROR("~e8_1_0__1",EL_ERROR,CP_WARPTYPE,"Warp type %s is not applicable to the desired analysis type.") //}}CGEN_REGISTERWORDS return O_K; }
INT16 CFWTproc::AutoRegisterWords() { DEBUGMSG(-1,"CFWTproc::AutoRegisterWords",0,0,0); IF_NOK(inherited::AutoRegisterWords()) return NOT_EXEC; //{{CGEN_REGISTERWORDS REGISTER_METHOD("-analyze","",LPMF(CFWTproc,OnAnalyze),"Run DWT.",0,"<data idSignal> <data idPitch> <data idReal> <data idImag> <FWTproc this>","") REGISTER_METHOD("-get_coef","",LPMF(CFWTproc,OnGetCoef),"Get scaling function coefficients of configured wavelet type ({@link wvltype})",0,"<data idCoef> <FWTproc this>","") REGISTER_METHOD("-synthesize","",LPMF(CFWTproc,OnSynthesize),"Convert scaling function and wavelet coefficients to signal.",0,"<data idTrans> <data idSignal> <FWTproc this>","") REGISTER_FIELD("level","",LPMV(m_nLevel),NULL,"Transformation detail level. (max. level (default) = -1; If defined level is greater then possible transformation depth, transformation provides with max. detail level.)",0,2002,1,"short",(INT16)-1) REGISTER_FIELD("wvltype","",LPMV(m_lpsWvltype),NULL,"Wavelet type (available values: haar,d2,d4,d6,...,d20)",0,5000,1,"string","d4") REGISTER_ERROR("~e8_1_0__1",EL_ERROR,FWT_DIM_ERROR,"Length of frame %d isn't 2^n.") //}}CGEN_REGISTERWORDS return O_K; }
INT16 CFFTproc::AutoRegisterWords() { DEBUGMSG(-1,"CFFTproc::AutoRegisterWords",0,0,0); IF_NOK(inherited::AutoRegisterWords()) return NOT_EXEC; //{{CGEN_REGISTERWORDS REGISTER_METHOD("-analyze","",LPMF(CFFTproc,OnAnalyze),"Run FFT.",0,"<data idSignal> <data idPitch> <data idReal> <data idImag> <FFTproc this>","") REGISTER_METHOD("-warp","",LPMF(CFFTproc,OnWarp),"Warping",0,"<data in> <data out> <double lambda> <int odim> <FFTproc this>","") REGISTER_OPTION("/lmag","",LPMV(m_bLmag),LPMF(CFFTproc,OnLmagSet),"Compute logarithm of magnitude spectrum rather than complex spectrum.",0) REGISTER_OPTION("/mag","",LPMV(m_bMag),LPMF(CFFTproc,OnMagSet),"Compute magnitude spectrum rather than complex spectrum.",0) REGISTER_OPTION("/nse","",LPMV(m_bNse),NULL,"Enable noise reduction",0) REGISTER_FIELD("order","",LPMV(m_nOrder),LPMF(CFFTproc,OnOrderChanged),"FFT analysis order. Adjusts analysis length to 2^order if set.",0,2002,1,"short",(INT16)9) //}}CGEN_REGISTERWORDS return O_K; }
void modRSEncode_Interface::register_methods(xmlrpc_c::registryPtr& rpcRegistry) { ACE_TRACE("modRSEncode_Interface::register_methods"); TEMPLATE_REGISTER_METHODS(modRSEncode, modRSEncode_Interface); REGISTER_ACCESSOR_METHODS(maxErrorsPerCodeWord, modRSEncode, MaxErrorsPerCodeWord); REGISTER_ACCESSOR_METHODS(interleavingDepth, modRSEncode, InterleavingDepth); REGISTER_METHOD(rebuild_encoder, "modRSEncode.rebuildEncoder"); }
CInput::CInput() { REGISTER_METHOD(RegisterAction); gEnv->pGameFramework->GetIActionMapManager()->AddExtraActionListener(this); gEnv->pHardwareMouse->AddListener(this); gEnv->pInput->AddEventListener(this); }
/// called by Register(), registers object-methods (see cLuaBind constructor for examples) virtual void RegisterMethods (lua_State *L) { PROFILE // mlMethod.push_back((struct luaL_reg){"Meemba", cWidget_L::Get}); // lua_register(L,"MyGlobalFun", MyGlobalFun); // lua_register(L,"MyStaticMethod", &cSomeClass::MyStaticMethod); lua_register(L,"GetWidgetUnderPos", &cWidget_L::GetWidgetUnderPos); #define REGISTER_METHOD(methodname) mlMethod.push_back(make_luaL_reg(#methodname,&cWidget_L::methodname)); REGISTER_METHOD(Destroy); REGISTER_METHOD(CreateChild); REGISTER_METHOD(UpdateClip); REGISTER_METHOD(SetBitMask); REGISTER_METHOD(IsUnderPos); #undef REGISTER_METHOD }
C74_EXPORT int main(void) { // create a class with the given name: Chordid::makeMaxClass("chordid~"); REGISTER_METHOD(Chordid, bang); REGISTER_METHOD_GIMME(Chordid, rate); REGISTER_METHOD_GIMME(Chordid, rms); REGISTER_METHOD_ASSIST(Chordid, assist); }
CActorSystem::CActorSystem() { REGISTER_METHOD(GetPlayerHealth); REGISTER_METHOD(SetPlayerHealth); REGISTER_METHOD(GetPlayerMaxHealth); REGISTER_METHOD(SetPlayerMaxHealth); REGISTER_METHOD(GetActorInfoByChannelId); REGISTER_METHOD(GetActorInfoById); REGISTER_METHOD(RegisterActorClass); REGISTER_METHOD(CreateActor); REGISTER_METHOD(RemoveActor); REGISTER_METHOD(GetClientActorId); gEnv->pEntitySystem->AddSink(this, IEntitySystem::OnSpawn, 0); }
void devTcp4Client_Interface::register_methods(xmlrpc_c::registryPtr& rpcRegistry) { ACE_TRACE("devTcp4Client_Interface::register_methods"); DEV_TEMPLATE_REGISTER_METHODS(devTcp4Client, devTcp4Client_Interface); REGISTER_METHOD(client_create, "devTcp4Client.create"); // REGISTER_METHOD(client_remove, "devTcp4Client.remove"); REGISTER_METHOD(client_is_connected, "devTcp4Client.isConnected"); REGISTER_METHOD(client_set_address, "devTcp4Client.setAddress"); REGISTER_METHOD(client_get_address, "devTcp4Client.getAddress"); REGISTER_METHOD(client_set_port, "devTcp4Client.setPort"); REGISTER_METHOD(client_get_port, "devTcp4Client.getPort"); REGISTER_METHOD(client_set_ms_between_attempts, "devTcp4Client.setMsBetweenAttempts"); REGISTER_METHOD(client_get_ms_between_attempts, "devTcp4Client.getMsBetweenAttempts"); REGISTER_METHOD(client_open_connection, "devTcp4Client.openConnection"); }
CScriptbind_Input::CScriptbind_Input() { REGISTER_METHOD(RegisterAction); g_pScriptSystem->GetIGameFramework()->GetIActionMapManager()->AddExtraActionListener(this); gEnv->pHardwareMouse->AddListener(this); if(gEnv->pInput) gEnv->pInput->AddEventListener(this); }
void modEmulateRate_Interface::register_methods(xmlrpc_c::registryPtr& rpcRegistry) { ACE_TRACE("modEmulateRate_Interface::register_methods"); TEMPLATE_REGISTER_METHODS(modEmulateRate, modEmulateRate_Interface); REGISTER_ACCESSOR_METHODS(rate_limit, modEmulateRate, RateLimit); REGISTER_ACCESSOR_METHODS(unlimited_throughput, modEmulateRate, UnlimitedThroughput); REGISTER_ACCESSOR_METHODS(timeline_cycle_secs, modEmulateRate, TimeLineCycleSecs); REGISTER_METHOD(clear_timeline, "modEmulateRate.clearTimeLine"); }
CScriptbind_Renderer::CScriptbind_Renderer() { REGISTER_METHOD(GetWidth); REGISTER_METHOD(GetHeight); REGISTER_METHOD(ScreenToWorld); REGISTER_METHOD(DrawTextToScreen); REGISTER_METHOD(LoadTexture); REGISTER_METHOD(DrawTextureToScreen); REGISTER_METHOD(CreateRenderTarget); REGISTER_METHOD(DestroyRenderTarget); REGISTER_METHOD(SetRenderTarget); }
CScriptbind_Debug::CScriptbind_Debug() { REGISTER_METHOD(AddPersistentSphere); REGISTER_METHOD(AddDirection); REGISTER_METHOD(AddPersistentText2D); REGISTER_METHOD(AddPersistentLine); REGISTER_METHOD(AddAABB); REGISTER_METHOD(CreateFrameProfiler); REGISTER_METHOD(CreateFrameProfilerSection); REGISTER_METHOD(DeleteFrameProfilerSection); }
INT16 CHelloworld_AutoRegisterWords(CDlpObject* __this) { GET_THIS_VIRTUAL_RV(CHelloworld,NOT_EXEC); DEBUGMSG(-1,"CHelloworld_AutoRegisterWords",0,0,0); /* Call base class implementation */ IF_NOK(INVOKE_BASEINST_0(AutoRegisterWords)) return NOT_EXEC; /*{{CGEN_REGISTERWORDS */ /* Register methods */ REGISTER_METHOD("-dm","",LPMF(CHelloworld,OnDm),"Delta modulation example",0,"<data idSrc> <long nOversample> <data idDst> <Helloworld this>","") REGISTER_METHOD("-sayhello","",LPMF(CHelloworld,OnSayhello),"Says hello to the user.",0,"<Helloworld this>","") /* Register options */ REGISTER_OPTION("/adm","",LPMV(m_bAdm),NULL,"Adaptive delta modulation (method -dm)",0) REGISTER_OPTION("/german","",LPMV(m_bGerman),LPMF(CHelloworld,OnGermanSet),"switch to german",0) /* Register fields */ REGISTER_FIELD("field_bool","",LPMV(m_fieldBool),NULL,"Just a field of type bool.",0,1000,1,"bool",(BOOL)0) REGISTER_FIELD("field_char","",LPMV(m_fieldChar),NULL,"Just a field of type char.",0,2001,1,"char",(char)0) REGISTER_FIELD("field_data","",LPMV(m_fieldData),NULL,"Just a field of type data.",0,6002,1,"data",NULL) REGISTER_FIELD("field_double","",LPMV(m_fieldDouble),NULL,"Just a field of type double.",0,3008,1,"double",(FLOAT64)0.0) REGISTER_FIELD("field_float","",LPMV(m_fieldFloat),NULL,"Just a field of type float.",0,3004,1,"float",(FLOAT32)0.0) REGISTER_FIELD("field_long","",LPMV(m_fieldLong),NULL,"Just a field of type long.",0,2008,1,"long",(INT64)0) REGISTER_FIELD("field_short","",LPMV(m_fieldShort),NULL,"Just a field of type short.",0,2002,1,"short",(INT16)0) REGISTER_FIELD("field_uchar","",LPMV(m_fieldUchar),NULL,"Just a field of type unsigned char.",0,1001,1,"unsigned char",(UINT8)0) REGISTER_FIELD("field_ulong","",LPMV(m_fieldUlong),NULL,"Just a field of type unsigned long.",0,1008,1,"unsigned long",(UINT64)0) REGISTER_FIELD("field_ushort","",LPMV(m_fieldUshort),NULL,"Just a field of type unsigned short.",0,1002,1,"unsigned short",(UINT16)0) REGISTER_FIELD("greeting_english","",LPMV(m_greetingEnglish),LPMF(CHelloworld,OnGreetingEnglishChanged),"English greeting text.",0,5000,1,"string","Hello World!") REGISTER_FIELD("greeting_german","",LPMV(m_greetingGerman),LPMF(CHelloworld,OnGreetingGermanChanged),"German greeting text.",0,5000,1,"string","Hallo Welt!") /* Register errors */ REGISTER_ERROR("~e1_0_0__1",EL_ERROR,PAR_ERROR,"Failed to set parameter %s.") /*}}CGEN_REGISTERWORDS */ return O_K; }
C74_EXPORT int main(void) { MIDI4L::makeMaxClass("midi4l"); REGISTER_METHOD_ASSIST(MIDI4L, assist); REGISTER_METHOD(MIDI4L, bang); REGISTER_METHOD_GIMME(MIDI4L, anything); //REGISTER_INLET_LONG(MIDI4L, testint); REGISTER_METHOD_GIMME(MIDI4L, send); REGISTER_METHOD_GIMME(MIDI4L, input); REGISTER_METHOD_GIMME(MIDI4L, output); }
static WrenForeignMethodFn bindForeignMethod( WrenVM* vm, const char* module, const char* className, bool isStatic, const char* signature) { if (strcmp(module, "main") != 0) return NULL; // For convenience, concatenate all of the method qualifiers into a single // signature string. char fullName[256]; fullName[0] = '\0'; if (isStatic) strcat(fullName, "static "); strcat(fullName, className); strcat(fullName, "."); strcat(fullName, signature); REGISTER_METHOD(foreign_class, foreignClass); REGISTER_METHOD(returns, returns); REGISTER_METHOD(value, value); fprintf(stderr, "Unknown foreign method '%s' for test '%s'\n", fullName, testName); exit(1); return NULL; }
INT16 CFvrtools_AutoRegisterWords(CDlpObject* __this) { GET_THIS_VIRTUAL_RV(CFvrtools,NOT_EXEC); DEBUGMSG(-1,"CFvrtools_AutoRegisterWords",0,0,0); /* Call base class implementation */ IF_NOK(INVOKE_BASEINST_0(AutoRegisterWords)) return NOT_EXEC; /*{{CGEN_REGISTERWORDS */ /* Register methods */ REGISTER_METHOD("-from_string","",LPMF(CFvrtools,OnFromString),"Creates a (weighted) FVR from a string representation",0,"<string src> <fst itFvr> <fvrtools this>","") REGISTER_METHOD("-is_fvr","",LPMF(CFvrtools,OnIsFvr),"Determines if the argument is an FVR",0,"<int nU> <fst itFvr> <fvrtools this>","") REGISTER_METHOD("-synthesize","",LPMF(CFvrtools,OnSynthesize),"Creates a list of all possible combinations from a FVR",0,"<fst itDst> <fst itFvr> <fvrtools this>","") /* Register errors */ REGISTER_ERROR("~e1_0_0__1",EL_ERROR,FVRT_SEQSYNTAX,"FVR string or sequence syntax error (%s)") REGISTER_ERROR("~e2_0_0__1",EL_ERROR,FVRT_NOTFVR,"'%s' is not a feature-value relation") REGISTER_ERROR("~e3_0_0__1",EL_WARNING,FVRT_EXTRATIS,"Ignored extra input symbol '%s' at transition %ld") REGISTER_ERROR("~e4_0_0__1",EL_WARNING,FVRT_NOTIS,"No input symbol at transition %ld") /*}}CGEN_REGISTERWORDS */ return O_K; }