[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: in or out IDE
[Thread Prev] | [Thread Next]
- Subject: Re: in or out IDE
- From: Bruce Steers <bsteers4@xxxxxxxxx>
- Date: Thu, 1 Oct 2026 15:38:56 +0100
- To: user@xxxxxxxxxxxxxxxxxxxxxx
On Thu, 1 Oct 2026 at 15:19, Philippe Valarcher <philippe.valarcher@xxxxxxx> wrote: > Le jeudi 01 octobre 2026 à 14:52 +0100, Bruce Steers a écrit : > > Try this... > > #If Exec > Print "run from the executable" > #Else > Print "Run from IDE" > #Endif > > Read here... > https://gambasgb.uk/phpBB/viewtopic.php?t=22 > > Respects > BruceS > > > On Thu, 1 Oct 2026 at 11:12, valaquarus <valaquarus@xxxxxxxxx> wrote: > > How can you tell if you're launching a program from within the IDE or > outside of it? > > > Thank you Bruce that's nearly what I did and it makes it real good. > > -- > > Philippe Valarcher <philippe.valarcher@xxxxxxx> > You're welcome. It's not completely 100% bullet-proof but works in most cases. For example if i was to start a program with gbx3 on the folder and not run the compiled executable... Eg. $ gbx3 /path/to/program/folder then the Exec pre-processor constant will not be set but we are also not using the IDE. It would be more useful i think if the IDE could also set a Flag/Env of some sort, a more definitive indicator of an IDE test run as opposed to launching the executable. Perhaps if Benoit could give us something more reliable like a pre-processor constant called IDE, #if IDE Then Respects BruceS
| Re: in or out IDE | Benoît Minisini <benoit.minisini@xxxxxxxxxxxxxxxx> |
| Re: in or out IDE | Bruce Steers <bsteers4@xxxxxxxxx> |
| in or out IDE | valaquarus <valaquarus@xxxxxxxxx> |
| Re: in or out IDE | Bruce Steers <bsteers4@xxxxxxxxx> |
| Re: in or out IDE | Philippe Valarcher <philippe.valarcher@xxxxxxx> |