//___FILEHEADER___ #import "rb_plugin.h" static REALstring CatString( REALstring str1, REALstring str2 ); REALmethodDefinition ___PACKAGENAMEASIDENTIFIER___Methods[] = { { (REALproc)CatString, REALnoImplementation, "CatString(str1 as string, str2 as string) as string", REALconsoleSafe | REALScopeGlobal }, }; REALmoduleDefinition ___PACKAGENAMEASIDENTIFIER___Definition = { kCurrentREALControlVersion, "___PACKAGENAMEASIDENTIFIER___", ___PACKAGENAMEASIDENTIFIER___Methods, sizeof( ___PACKAGENAMEASIDENTIFIER___Methods ) / sizeof( REALmethodDefinition ), nil, // ___PACKAGENAMEASIDENTIFIER___Constants, 0, // sizeof( ___PACKAGENAMEASIDENTIFIER___Constants ) / sizeof( REALconstant ), nil, // ___PACKAGENAMEASIDENTIFIER___Properties, 0, // sizeof( ___PACKAGENAMEASIDENTIFIER___Properties ) / sizeof( REALproperty ), }; static REALstring CatString( REALstring str1, REALstring str2 ) { NSString* nsstr1 = (NSString *)REALCopyStringCFString(str1); NSString* nsstr2 = (NSString *)REALCopyStringCFString(str2); NSString* nsstr3 = [NSString stringWithFormat:@"%@ %@",nsstr1, nsstr2]; const char* cstr3 = [nsstr3 UTF8String]; return REALBuildStringWithEncoding(cstr3, (int)::strlen(cstr3), kREALTextEncodingUTF8); } void PluginEntry( void ) { REALRegisterModule( &___PACKAGENAMEASIDENTIFIER___Definition ); }