|
-
Dec 21st, 2021, 09:07 AM
#11
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>
Last edited by wqweto; Dec 21st, 2021 at 11:26 AM.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|