mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-30 08:51:10 +02:00
neutrino: fix shortened source file paths
This commit is contained in:
@@ -57,6 +57,7 @@
|
|||||||
#include <zapit/getservices.h>
|
#include <zapit/getservices.h>
|
||||||
#include <zapit/scan.h>
|
#include <zapit/scan.h>
|
||||||
#include <zapit/zapit.h>
|
#include <zapit/zapit.h>
|
||||||
|
#define __NFILE__ 1
|
||||||
#include <zapit/debug.h>
|
#include <zapit/debug.h>
|
||||||
#include <set>
|
#include <set>
|
||||||
|
|
||||||
|
@@ -29,6 +29,7 @@
|
|||||||
#include <config.h>
|
#include <config.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#define __NFILE__ 1
|
||||||
#define NEUTRINO_CPP
|
#define NEUTRINO_CPP
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
@@ -45,7 +45,13 @@
|
|||||||
/* zapit.cpp */
|
/* zapit.cpp */
|
||||||
extern int zapit_debug;
|
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;
|
static int __striplen = strstr(__FILE__, "src/zapit") ? (strstr(__FILE__, "src/zapit") - __FILE__ + 14) : 0;
|
||||||
|
#endif
|
||||||
#define __SHORTFILE__ (__FILE__ + __striplen)
|
#define __SHORTFILE__ (__FILE__ + __striplen)
|
||||||
|
|
||||||
#define DBG(fmt, args...) \
|
#define DBG(fmt, args...) \
|
||||||
|
Reference in New Issue
Block a user