<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://www.nsnam.org/mediawiki/index.php?action=history&amp;feed=atom&amp;title=EnablingAsserts</id>
	<title>EnablingAsserts - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://www.nsnam.org/mediawiki/index.php?action=history&amp;feed=atom&amp;title=EnablingAsserts"/>
	<link rel="alternate" type="text/html" href="https://www.nsnam.org/mediawiki/index.php?title=EnablingAsserts&amp;action=history"/>
	<updated>2026-05-01T00:26:23Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.39.8</generator>
	<entry>
		<id>https://www.nsnam.org/mediawiki/index.php?title=EnablingAsserts&amp;diff=1713&amp;oldid=prev</id>
		<title>Tjkopena at 20:43, 23 June 2008</title>
		<link rel="alternate" type="text/html" href="https://www.nsnam.org/mediawiki/index.php?title=EnablingAsserts&amp;diff=1713&amp;oldid=prev"/>
		<updated>2008-06-23T20:43:25Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;A common first &amp;quot;gotcha&amp;quot; in simulation scripts, the following macro must be declared to enable &amp;lt;code&amp;gt;NS3_ASSERT()&amp;lt;/code&amp;gt; assertion macros:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;pre&amp;gt;&lt;br /&gt;
  #define NS3_ASSERT_ENABLE&lt;br /&gt;
&amp;lt;/pre&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This should happen before &amp;lt;code&amp;gt;core-module.h&amp;lt;/code&amp;gt; is included.  Note that macros may be defined from the command line in gcc, e.g.:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;pre&amp;gt;&lt;br /&gt;
g++ -Wall -g -DNS3_ASSERT_ENABLE -o foo src/foo.cc -lns3&lt;br /&gt;
&amp;lt;/pre&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This is useful to enable/disable &amp;lt;code&amp;gt;NS3_ASSERT()&amp;lt;/code&amp;gt; without having to edit any code.&lt;br /&gt;
&lt;br /&gt;
[[Category:Samples]]&lt;/div&gt;</summary>
		<author><name>Tjkopena</name></author>
	</entry>
</feed>