Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit c4b0f0b

Browse files
rw-schumannphillipjohnston
authored andcommitted
Added NO_PRAGMA_MARK supprt if defined then the #PRAGMA MARK lines are ignored. Allows removing unnecessary warning message when doing an Arduino build.
1 parent 3070193 commit c4b0f0b

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

‎src/ArduinoLogger.h‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,9 @@
7474
}
7575
#endif
7676

77+
#ifndef NO_PRAGMA_MARK
7778
#pragma mark - Short File Name Macro -
79+
#endif
7880

7981
using cstr = const char* const;
8082

@@ -96,7 +98,9 @@ constexpr cstr past_last_slash(cstr str)
9698
sf__; \
9799
})
98100

101+
#ifndef NO_PRAGMA_MARK
99102
#pragma mark - Tracing Macros -
103+
#endif
100104

101105
#define STRINGPASTE(x) #x
102106
#define TOSTRING(x) STRINGPASTE(x)
@@ -109,7 +113,9 @@ constexpr cstr past_last_slash(cstr str)
109113
#define FUNC() __FUNCTION__
110114
#define PRETTY_FUNC() __PRETTY_FUNCTION__
111115

116+
#ifndef NO_PRAGMA_MARK
112117
#pragma mark - Logging Class -
118+
#endif
113119

114120
enum log_level_e
115121
{

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /