summaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2020-11-03 18:03:23 +0900
committerYukihiro "Matz" Matsumoto <[email protected]>2020-11-03 18:03:23 +0900
commit963b44286acf2e822130ef693a9891d06a3e4dfc (patch)
tree90e08e268859ea53dac81472c30026a0594a3941 /include
parentb7e8406f6cf7f8f83fe9594d06c0861e4068241b (diff)
downloadmruby-963b44286acf2e822130ef693a9891d06a3e4dfc.tar.gz
mruby-963b44286acf2e822130ef693a9891d06a3e4dfc.zip
Use C99 `__func__` instead of `__FUNCTION__`; #5107
Diffstat (limited to 'include')
-rw-r--r--include/mruby.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/mruby.h b/include/mruby.h
index 18dd311f7..6d03ba79c 100644
--- a/include/mruby.h
+++ b/include/mruby.h
@@ -53,6 +53,10 @@
#endif
#endif
+#ifdef _MSC_VER
+# define __func__ __FUNCTION__
+#endif
+
#ifdef MRB_DEBUG
#include <assert.h>
#define mrb_assert(p) assert(p)