[PD-dev] PDINSTANCE: when and where?

IOhannes m zmoelnig zmoelnig at iem.at
Wed Dec 20 17:25:56 CET 2017


On 2017-12-19 21:20, Giulio Moro via Pd-dev wrote:
> i,
> I just realized that there are a plethora of #ifdef PDINSTANCE in the Pd source code, but no actual #define PDINSTANCE or -DPDINSTANCE, and grepping the whole repo, I cannot find any place where it is defined.
> So, is anyone defining PDINSTANCE in their projects? Is it safe to do so? Is it stable and tested?
> 
> In a libpd I am building, I was planning to put a #define PDINSTANCE line in m_pd.h, does it sound like a good idea? 

no.
because the beauty of libpd is, that it works without modification of
the Pd sources.
put "-DPDINSTANCE=1" into your build scripts instead.

masdr
IOhannes

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: OpenPGP digital signature
URL: <http://lists.puredata.info/pipermail/pd-dev/attachments/20171220/14159502/attachment.sig>


More information about the Pd-dev mailing list