Watch, Follow, &
Connect with Us

For forums, blogs and more please visit our
Developer Tools Community.


Welcome, Guest
Guest Settings
Help

Thread: Does all Assert code "disappear" when {$ASSERTIONS OFF}


This question is not answered. Helpful answers available: 2. Correct answers available: 1.


Permlink Replies: 1 - Last Post: May 9, 2016 1:49 AM Last Post By: Kim Madsen Threads: [ Previous | Next ]
Free Dorfman

Posts: 139
Registered: 2/4/12
Does all Assert code "disappear" when {$ASSERTIONS OFF}  
Click to report abuse...   Click to reply to this thread Reply
  Posted: May 8, 2016 4:41 PM
Hey all.

Quickly: if I compile with
{$ASSERTIONS OFF}

Will my resulting DCU and EXE files be exactly the same as if I removed all the Assert statements beforehand?

Is the same true for files created for ANDROID, OSX or IOS deployment?

Thanks.
Kim Madsen

Posts: 362
Registered: 12/13/99
Re: Does all Assert code "disappear" when {$ASSERTIONS OFF}  
Click to report abuse...   Click to reply to this thread Reply
  Posted: May 9, 2016 1:49 AM   in response to: Free Dorfman in response to: Free Dorfman
Den 5/9/2016 kl. 01:41 skrev Free Dorfman:
Hey all.

Quickly: if I compile with
{$ASSERTIONS OFF}

Will my resulting DCU and EXE files be exactly the same as if I removed all the Assert statements beforehand?

Is the same true for files created for ANDROID, OSX or IOS deployment?

Thanks.

Yes, thats my experience.
I dont know if there could be any side effects related to optimization
or such, but I see no reason why that should be the case.

best regards
Kim/C4D
www.components4developers.com
Legend
Helpful Answer (5 pts)
Correct Answer (10 pts)

Server Response from: ETNAJIVE02