mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-29 16:31:11 +02:00
neutrino: fix shortened source file paths
This commit is contained in:
@@ -57,6 +57,7 @@
|
||||
#include <zapit/getservices.h>
|
||||
#include <zapit/scan.h>
|
||||
#include <zapit/zapit.h>
|
||||
#define __NFILE__ 1
|
||||
#include <zapit/debug.h>
|
||||
#include <set>
|
||||
|
||||
|
@@ -29,6 +29,7 @@
|
||||
#include <config.h>
|
||||
#endif
|
||||
|
||||
#define __NFILE__ 1
|
||||
#define NEUTRINO_CPP
|
||||
|
||||
#include <stdio.h>
|
||||
|
@@ -45,7 +45,13 @@
|
||||
/* zapit.cpp */
|
||||
extern int zapit_debug;
|
||||
|
||||
#if defined __NFILE__
|
||||
/* this is ugly. __FILE__ here is always zapit/include/debug.h, if it is called from
|
||||
* src/neutrino.cpp, src/gui/... simply strip less characters */
|
||||
static int __striplen = strstr(__FILE__, "src/zapit") ? (strstr(__FILE__, "src/zapit") - __FILE__ + 4) : 0;
|
||||
#else
|
||||
static int __striplen = strstr(__FILE__, "src/zapit") ? (strstr(__FILE__, "src/zapit") - __FILE__ + 14) : 0;
|
||||
#endif
|
||||
#define __SHORTFILE__ (__FILE__ + __striplen)
|
||||
|
||||
#define DBG(fmt, args...) \
|
||||
|
Reference in New Issue
Block a user