COCKOS
CONFEDERATED FORUMS
Cockos : REAPER : NINJAM : Forums
Forum Home : Register : FAQ : Members List : Search :
Old 08-12-2011, 07:41 AM   #1
olilarkin
Human being with feelings
 
olilarkin's Avatar
 
Join Date: Apr 2009
Location: UK
Posts: 1,163
Default IGraphicsCocoa Uniqueness

I think i made quite a nice solution to the iGraphicsCocoa uniqueness problem, based on how it's done in swell. Provided that the IGraphicsCocoa classes are compiled per-plugin (not in a static library) and COCOA_PREFIX is changed as a preprocessor macro (actually it's not really a "prefix" since it comes after). This will make it different for vst and au builds, which could cause problems in host such as reaper or live that support both formats.

see these old threads for more info

http://forum.cockos.com/showthread.php?t=77487
http://forum.cockos.com/showthread.php?t=70592

Code:
#ifndef COCOA_PREFIX 
#define COCOA_PREFIX vOliLarkin
#endif

#if defined(VST_API)
#define API _vst
#elif defined(AU_API)
#define API _au
#endif

#define CONCAT3(a,b,c) a##b##c
#define CONCAT2(a,b,c) CONCAT3(a,b,c)
#define CONCAT(cname) CONCAT2(cname,COCOA_PREFIX,API)

#define IGRAPHICS_COCOA CONCAT(IGraphicsCocoa_)
__________________
VirtualCZ | pMix | Endless Series | iPlug2 | Linkedin | Facebook
Available for Audio Dev tuition via Skype (IPlug/JUCE/C++)
olilarkin is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 08:32 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2019, vBulletin Solutions Inc.