Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
C
click_for_comnet2
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Packages
Packages
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jiachen,Chen
click_for_comnet2
Commits
f3c8ce08
Commit
f3c8ce08
authored
Apr 30, 2019
by
Jiachen,Chen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added TestDebug
parent
7f0d4b6a
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
72 additions
and
0 deletions
+72
-0
TestDebug.cc
TestDebug.cc
+37
-0
TestDebug.click
TestDebug.click
+5
-0
TestDebug.hh
TestDebug.hh
+30
-0
No files found.
TestDebug.cc
0 → 100644
View file @
f3c8ce08
/*
* File: TestDebug.cc
* Author: Jiachen Chen
*
* Created on April 30, 2019, 2:42 AM
*/
#include "TestDebug.hh"
CLICK_DECLS
#define TEST_DEBUG
#ifdef TEST_DEBUG
#define DEBUG(...) _DEBUG(__VA_ARGS__, "dummy")
#define _DEBUG(fmt, ...) printf("[%s():%d] " fmt "%.0s\n", \
__func__, __LINE__, __VA_ARGS__)
#else
#define DEBUG(...)
#endif
TestDebug
::
TestDebug
()
=
default
;
TestDebug
::~
TestDebug
()
=
default
;
int
TestDebug
::
initialize
(
ErrorHandler
*
errh
__attribute
((
__unused__
)))
{
DEBUG
(
"You can only see me when TEST_DEBUG is defined!"
);
DEBUG
(
"You can use this function just as print: %p"
,
this
);
return
0
;
}
CLICK_ENDDECLS
EXPORT_ELEMENT
(
TestDebug
)
\ No newline at end of file
TestDebug.click
0 → 100644
View file @
f3c8ce08
require(package "click_for_comnet");
test :: TestDebug;
DriverManager(stop);
TestDebug.hh
0 → 100644
View file @
f3c8ce08
/*
* File: TestDebug.hh
* Author: Jiachen Chen
*
* Created on April 30, 2019, 2:42 AM
*/
#ifndef TESTDEBUG_HH
#define TESTDEBUG_HH
#include <click/config.h>
#include <click/element.hh>
#include <click/error.hh>
CLICK_DECLS
class
TestDebug
:
public
Element
{
public:
TestDebug
();
~
TestDebug
();
const
char
*
class_name
()
const
{
return
"TestDebug"
;
}
int
initialize
(
ErrorHandler
*
errh
);
private:
};
CLICK_ENDDECLS
#endif
/* TESTDEBUG_HH */
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment