Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
J
jlib
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
captainwong
jlib
Commits
43f89c3a
Commit
43f89c3a
authored
May 08, 2020
by
captainwong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update log2
parent
7fef23ea
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
35 deletions
+16
-35
log2.h
jlib/log2.h
+1
-26
log2auto.h
jlib/log2auto.h
+11
-0
log2micros.h
jlib/log2micros.h
+4
-9
No files found.
jlib/log2.h
View file @
43f89c3a
...
...
@@ -3,32 +3,7 @@
#include "base/config.h"
#ifdef JLIB_DISABLE_LOG
namespace
jlib
{
#define init_logger
#define JLOG_DBUG
#define JLOG_INFO
#define JLOG_WARN
#define JLOG_ERRO
#define JLOG_CRTC
#define JLOG_ALL
class
range_log
{
public
:
range_log
()
{}
range_log
(
const
char
*
)
{}
};
#define AUTO_LOG_FUNCTION
#define dump_hex
#define dump_asc
#define JLOG_HEX
#define JLOG_ASC
}
#include "no_log.h"
#else // JLIB_DISABLE_LOG
#define JLIB_LOG2_ENABLED
...
...
jlib/log2auto.h
0 → 100644
View file @
43f89c3a
#pragma once
#if defined(DISABLE_JLIB_LOG2) && !defined(JLIB_DISABLE_LOG)
#define JLIB_DISABLE_LOG
#endif
#ifndef JLIB_DISABLE_LOG
#include "log2.h"
#else // JLIB_DISABLE_LOG
#include "log2micros.h"
#endif // JLIB_DISABLE_LOG
jlib/
no_log
.h
→
jlib/
log2micros
.h
View file @
43f89c3a
#pragma once
#pragma once
#if defined(DISABLE_JLIB_LOG2) && !defined(JLIB_DISABLE_LOG)
#define JLIB_DISABLE_LOG
#endif
#ifndef JLIB_DISABLE_LOG
#include "log2.h"
#else // JLIB_DISABLE_LOG
#ifndef JLIB_LOG2_ENABLED
#define init_logger
#define JLOG_DBUG
#define JLOG_INFO
...
...
@@ -27,4 +21,5 @@ public:
#define dump_asc
#define JLOG_HEX
#define JLOG_ASC
#endif // JLIB_DISABLE_LOG
#endif
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