2023-12-14 Fred Gleason <fredg@paravelsystems.com>

* Moved LINE_NUMBER macros to 'lib/rd.h'.

Signed-off-by: Fred Gleason <fredg@paravelsystems.com>
This commit is contained in:
Fred Gleason
2023-12-14 10:16:59 -05:00
parent f59c216a38
commit b939c2772c
4 changed files with 19 additions and 6 deletions

View File

@@ -690,5 +690,12 @@
#define RD_OFFSET_FORMAT "mm:ss"
#define RD_OFFSET_TENTHS_FORMAT "mm:ss.z"
/*
* Line number macros
*/
#define STRINGIZE(x) STRINGIZE2(x)
#define STRINGIZE2(x) #x
#define LINE_NUMBER QString(STRINGIZE(__LINE__)).toInt()
#endif // RD_H