Skip to content

Commit 1068831

Browse files
author
Chris Hold
committed
Rename __defs in ssr_global
1 parent fe781bb commit 1068831

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/ssr_global.h

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -54,11 +54,11 @@ extern unsigned int usleeptime;
5454
// some preprocessor macros:
5555

5656
/// turn the argument into a string
57-
#define __STR__(x) #x
57+
#define __SSR_STR__(x) #x
5858
/// workaround to evaluate the argument and pass the result to __STR__
59-
#define __XSTR__(x) __STR__(x)
59+
#define __SSR_XSTR__(x) __SSR_STR__(x)
6060
/// make a string with filename and line number
61-
#define __POS__ "(" __FILE__ ":" __XSTR__(__LINE__) ")"
61+
#define __SSR_POS__ "(" __FILE__ ":" __SSR_XSTR__(__LINE__) ")"
6262

6363
/// Write message to stdout, if ssr::verbose is non-zero.
6464
#define SSR_VERBOSE(msg) __SSR_VERBOSE(msg,1)
@@ -84,9 +84,9 @@ extern unsigned int usleeptime;
8484

8585
/// Write a warning message to stderr.
8686
#define SSR_WARNING(msg) \
87-
std::cerr << "Warning: " << msg << " " __POS__ << std::endl
87+
std::cerr << "Warning: " << msg << " " __SSR_POS__ << std::endl
8888
/// Write an error message to stderr.
8989
#define SSR_ERROR(msg) \
90-
std::cerr << "Error: " << msg << " " __POS__ << std::endl
90+
std::cerr << "Error: " << msg << " " __SSR_POS__ << std::endl
9191

9292
#endif

0 commit comments

Comments
 (0)