[Implemented] Constant '#PB_Compiler_DLL'

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
Leonhard
User
User
Posts: 55
Joined: Fri Jun 16, 2006 7:43 am

[Implemented] Constant '#PB_Compiler_DLL'

Post by Leonhard »

I need this constant to chech, if the build were a shared-dll or not!
inc.
Enthusiast
Enthusiast
Posts: 406
Joined: Thu May 06, 2004 4:28 pm
Location: Cologne/GER

Post by inc. »

PB comes with nice compiler environment constants, ... what about:

#PB_COMPILER_HOME+"compiler\"

There do check for the compilers file output and therefore if the output gots the .dll suffix.
Check out OOP support for PB here!
Trond
Always Here
Always Here
Posts: 7446
Joined: Mon Sep 22, 2003 6:45 pm
Location: Norway

Post by Trond »

If the output is already created it's way to late.
inc.
Enthusiast
Enthusiast
Posts: 406
Joined: Thu May 06, 2004 4:28 pm
Location: Cologne/GER

Post by inc. »

I did interprete his words as "If the build out of the compilation is a shard dll or not". So to me it seems he wants to check the output?
Check out OOP support for PB here!
Fred
Administrator
Administrator
Posts: 18161
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Post by Fred »

Sounds like an acceptable wish to me, as it can do conditional compiling depending of the output mode.
srod
PureBasic Expert
PureBasic Expert
Posts: 10589
Joined: Wed Oct 29, 2003 4:35 pm
Location: Beyond the pale...

Post by srod »

Yes that would be great. At the moment I have to set my own constant and check the presence of that in order to determine whether a shared dll is being created.

This would be very useful indeed.
I may look like a mule, but I'm not a complete ass.
Post Reply