Skip to content

Commit c7c6da4

Browse files
committed
Use __FUNCTION__ for MSVC
1 parent dd91160 commit c7c6da4

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

debug.hpp

+6-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ enum dbg_lvl_t : uint32_t {
1313
EXTEND_COMPOUND = 16,
1414
EXTEND_COMPLEX = 32,
1515
LCS = 64,
16-
EXTEND_OBJECT = 128,
16+
EXTEND_OBJECT = 128,
1717
ALL = UINT32_MAX
1818
};
1919

@@ -38,6 +38,11 @@ namespace Sass {
3838
};
3939
}
4040

41+
// Visual Studio does not like __func__
42+
#if defined(_MSC_VER)
43+
#define __func__ __FUNCTION__
44+
#endif
45+
4146
#define TRACE() \
4247
if (logTRACE > Sass::LibsassLogReportingLevel) ; \
4348
else Sass::Log().Get(Sass::logTRACE, __func__, __FILE__, __LINE__)

0 commit comments

Comments
 (0)