Skip to content

Commit 51f7c3f

Browse files
committed
Visual Studio < 2013 does not have __func__
1 parent 3023f91 commit 51f7c3f

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

debug.hpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,11 @@ namespace Sass {
3838
};
3939
}
4040

41+
// Visual Studio 2012 does not have __func__
42+
#if _MSC_VER < 1800
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)