Compiler features

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
User avatar
Joakim Christiansen
Addict
Addict
Posts: 2452
Joined: Wed Dec 22, 2004 4:12 pm
Location: Norway
Contact:

Compiler features

Post by Joakim Christiansen »

I see you have a EnableDebugger keyword like EnableExplicit, but it does'nt work, that's actually a bug?

I also want a EnableOnErrorsLineSupport!
So I could do:

Code: Select all

#ErrorSupport = #True
CompilerIf #ErrorSupport
  EnableOnErrorsLineSupport
  Declare Error()
  OnErrorGosub(@Error())
CompilerEndIf
Because that's just sexy!

I actually think that all compiler options should be declared like that, you know...

Code: Select all

StartCompilerOptions
  EnableExplicit
  EnableDebugger
  EnableXPSkinSupport
  EnableOnErrorsLineSupport
  SetExecutableFormat = #Windows|#AllCPU
  SetExecutableIcon = "icon.ico"
EndCompilerOptions
Last edited by Joakim Christiansen on Wed May 31, 2006 7:03 pm, edited 2 times in total.
I like logic, hence I dislike humans but love computers.
Trond
Always Here
Always Here
Posts: 7446
Joined: Mon Sep 22, 2003 6:45 pm
Location: Norway

Post by Trond »

EnableDebugger is not supposed to work the same way as EnableExplicit.

Code: Select all


DisableDebugger
  ; Do something weird here without letting the debugger know
EnableDebugger
; Do something weird here and the debugger will catch it

User avatar
Joakim Christiansen
Addict
Addict
Posts: 2452
Joined: Wed Dec 22, 2004 4:12 pm
Location: Norway
Contact:

Post by Joakim Christiansen »

Trond,
Oh, sorry then.
I like logic, hence I dislike humans but love computers.
User avatar
Joakim Christiansen
Addict
Addict
Posts: 2452
Joined: Wed Dec 22, 2004 4:12 pm
Location: Norway
Contact:

Post by Joakim Christiansen »

But what about the:

Code: Select all

StartCompilerOptions
  EnableExplicit
  EnableDebugger
  EnableXPSkinSupport
  EnableOnErrorsLineSupport
  SetExecutableFormat = #Windows|#AllCPU
  SetExecutableIcon = "icon.ico"
EndCompilerOptions
I think it would be nice, and then we don't need those hidden lines in our sourcecode:
; EnableXP
; UseIcon = icon.ico
And no it shouldn't have to be necessary to set SetExecutableFormat everytime or any of the other options, they should just have a default value.
I like logic, hence I dislike humans but love computers.
Post Reply