Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(2306)

Unified Diff: src/traffic-control/examples/adaptive-red-tests.cc

Issue 333710043: Add Windows platform conditional compiles for Visual Studio build (Closed)
Patch Set: Update patch per coding style requirements Created 6 years ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | src/traffic-control/examples/codel-vs-pfifo-asymmetric.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/traffic-control/examples/adaptive-red-tests.cc
===================================================================
--- a/src/traffic-control/examples/adaptive-red-tests.cc
+++ b/src/traffic-control/examples/adaptive-red-tests.cc
@@ -71,6 +71,9 @@
#include "ns3/point-to-point-module.h"
#include "ns3/applications-module.h"
#include "ns3/traffic-control-module.h"
+#ifdef _WIN32
+#include "CrashHandler.h"
+#endif
using namespace ns3;
@@ -178,6 +181,14 @@
int
main (int argc, char *argv[])
{
+#ifdef _WIN32
+#ifndef _DEBUG
+ CCrashHandler ch;
+ ch.SetProcessExceptionHandlers();
+ ch.SetThreadExceptionHandlers();
+#endif
+#endif
+
LogComponentEnable ("RedQueueDisc", LOG_LEVEL_INFO);
uint32_t aredTest;
« no previous file with comments | « no previous file | src/traffic-control/examples/codel-vs-pfifo-asymmetric.cc » ('j') | no next file with comments »

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b