CompilerIf defined(UseZipPacker,#PB_compiler_library)

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
jassing
Addict
Addict
Posts: 1885
Joined: Wed Feb 17, 2010 12:00 am

CompilerIf defined(UseZipPacker,#PB_compiler_library)

Post by jassing »

basically; if the "UseZipPack" has been declared, (ie: a packer is linked in) to be able to determine that easily - Yes, I know I can create a constant (whcih I've done) but it would be nice if we could have a defined() on an included(or not) library.
Fred
Administrator
Administrator
Posts: 18162
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Re: CompilerIf defined(UseZipPacker,#PB_compiler_library)

Post by Fred »

Just wondering: as you can call it twice without issue, so why would it be an advantage to know it has been called before ?
jassing
Addict
Addict
Posts: 1885
Joined: Wed Feb 17, 2010 12:00 am

Re: CompilerIf defined(UseZipPacker,#PB_compiler_library)

Post by jassing »

Fred wrote:Just wondering: as you can call it twice without issue, so why would it be an advantage to know it has been called before ?
Overly simplified:
Let's say I charge $5 for a version w/o backup capability, and $10 for a version that has it.
When I build the $5 version, I won't have "UseZipPacker()" called; and hence no need for any procedures related to it...
Post Reply