From 30582976c0976a8bee6e98fe078e527a7563a9d8 Mon Sep 17 00:00:00 2001 From: NicJA Date: Sat, 13 May 2017 02:39:44 +0000 Subject: [PATCH] if __SRCFILENAME__ is defined, use it instead of __FILE__, so that it can be overridden. git-svn-id: https://svn.aros.org/svn/aros/trunk/AROS@54670 fb15a70f-31f2-0310-bbcc-cdcc74a49acc --- compiler/arossupport/include/debug.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/compiler/arossupport/include/debug.h b/compiler/arossupport/include/debug.h index 94c2439519..f7a4c0a1cb 100644 --- a/compiler/arossupport/include/debug.h +++ b/compiler/arossupport/include/debug.h @@ -1,5 +1,5 @@ /* - Copyright © 1995-2011, The AROS Development Team. All rights reserved. + Copyright © 1995-2017, The AROS Development Team. All rights reserved. $Id$ Debugging macros. @@ -158,7 +158,11 @@ /* The trick with THIS_FILE allows us to reuse the same static string * instead of allocating a new copy for each invocation of these macros. */ +#ifndef __SRCFILENAME__ #define THIS_FILE __FILE__ +#else +#define THIS_FILE __SRCFILENAME__ +#endif #define ASSERT(x) do { \ if (!(x)) { \ -- 2.11.4.GIT