[CMAKE] Use configured include files to define the __RELFILE__ hack (#979)
[reactos.git] / sdk / include / reactos / debug.h
index ab332fd..f56090b 100644 (file)
 #pragma once
 
 #ifndef __RELFILE__
-#define __RELFILE__ __FILE__
+#   ifdef __REACTOS__
+#       include <reactos/builddir.h>
+#       define __RELFILE__ &__FILE__[sizeof(REACTOS_SOURCE_DIR)]
+#   else
+#       define __RELFILE__ __FILE__
+#   endif
 #endif
 
 /* Define DbgPrint/DbgPrintEx/RtlAssert unless the NDK is used */