git.iko.soy/rowtype-yoga/purescript-native
on golang help sign in
C++: minor cleanup to fix MS Visual Studio 2015 issues
cb565d1Andy Arvanitis
pcc/include/purescript.hh+1−1
@@ -38,7 +38,7 @@
38namespace PureScript {
38namespace PureScript {
39
39
40using cstring = const char *;
40using cstring = const char *;
41−using nullptr_t = std::nullptr_t;
41+using std::nullptr_t;
42
42
43// Workaround for missing C++11 version in gcc
43// Workaround for missing C++11 version in gcc
44class runtime_error : public std::runtime_error {
44class runtime_error : public std::runtime_error {
pcc/include/purescript_memory.hh+2−2
@@ -25,7 +25,7 @@
25 #define MAKE_MANAGED_FINALIZED(T) new (GC, [](void* p, void*){ static_cast<T*>(p)->~T(); }) T
25 #define MAKE_MANAGED_FINALIZED(T) new (GC, [](void* p, void*){ static_cast<T*>(p)->~T(); }) T
26 #define IS_POINTER_TYPE(T) std::is_pointer<T>
26 #define IS_POINTER_TYPE(T) std::is_pointer<T>
27 #define POINTER_FROM_MEMBER(P) P
27 #define POINTER_FROM_MEMBER(P) P
28− #define INITIALIZE_GC(_) GC_INIT()
28+ #define INITIALIZE_GC() GC_INIT()
29#else
29#else
30 #include <memory>
30 #include <memory>
31 #define WITH_ALLOCATOR(_)
31 #define WITH_ALLOCATOR(_)
@@ -34,7 +34,7 @@
34 #define MAKE_MANAGED_FINALIZED(T) MAKE_MANAGED(T)
34 #define MAKE_MANAGED_FINALIZED(T) MAKE_MANAGED(T)
35 #define IS_POINTER_TYPE(T) std::is_assignable<managed<void>,T>
35 #define IS_POINTER_TYPE(T) std::is_assignable<managed<void>,T>
36 #define POINTER_FROM_MEMBER(P) P.get()
36 #define POINTER_FROM_MEMBER(P) P.get()
37− #define INITIALIZE_GC(_)
37+ #define INITIALIZE_GC()
38#endif
38#endif
39
39
40namespace PureScript {
40namespace PureScript {