Results 1 to 40 of 2082

Thread: TwinBasic

Threaded View

  1. #11
    PowerPoster wqweto's Avatar
    Join Date
    May 2011
    Location
    Sofia, Bulgaria
    Posts
    6,203

    Re: TwinBasic

    Using App.IsInIDE has its downsides.

    We need preprocessor conditional for RunningInIde i.e. instead of this

    If App.IsInIde Then
    <<lots of code here which is included in final executable>>
    End If

    . . . something like this would be better

    #If RunningInIde Then
    <<lots of code here to be removed at compile-time>>
    #End If

    . . . so that we don't bloat final executable with debugging code.

    I already use this in VBx

    Dim bInIde As Boolean
    Debug.Assert SetTrue(bInIde)

    If bInIde Then
    <<code>
    End If

    . . . and the C2 compiler is smart enough to prune <<code>> when the boolean variable is not set (always false) during native code compile.

    We already have TWINBASIC const, might be good idea to add TWINBASIC_DEBUG or similar for while running under the debugger too.

    cheers,
    </wqw>

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width