git.iko.soy/rowtype-yoga/purescript-native
on golang help sign in
C++: minor cleanup to fix MS Visual Studio 2015 issues
commitcb565d126de07899d943075f86ee77af2c374c30 authorAndy Arvanitis <andyarvanitis@gmail.com> dateSun 23 Oct 2016, 15:07 (10 years ago) parentf84de2e
2 files changed+3−3
pcc/include/purescript.hh+1−1 pcc/include/purescript_memory.hh+2−2
pcc/include/purescript.hh+1−1
@@ -38,7 +38,7 @@
3838namespace PureScript {
3939
4040using cstring = const char *;
41−using nullptr_t = std::nullptr_t;
41+using std::nullptr_t;
4242
4343// Workaround for missing C++11 version in gcc
4444class runtime_error : public std::runtime_error {
pcc/include/purescript_memory.hh+2−2
@@ -25,7 +25,7 @@
2525 #define MAKE_MANAGED_FINALIZED(T) new (GC, [](void* p, void*){ static_cast<T*>(p)->~T(); }) T
2626 #define IS_POINTER_TYPE(T) std::is_pointer<T>
2727 #define POINTER_FROM_MEMBER(P) P
28− #define INITIALIZE_GC(_) GC_INIT()
28+ #define INITIALIZE_GC() GC_INIT()
2929#else
3030 #include <memory>
3131 #define WITH_ALLOCATOR(_)
@@ -34,7 +34,7 @@
3434 #define MAKE_MANAGED_FINALIZED(T) MAKE_MANAGED(T)
3535 #define IS_POINTER_TYPE(T) std::is_assignable<managed<void>,T>
3636 #define POINTER_FROM_MEMBER(P) P.get()
37− #define INITIALIZE_GC(_)
37+ #define INITIALIZE_GC()
3838#endif
3939
4040namespace PureScript {