Ticket #153: patch.patch
File patch.patch, 1.4 KB (added by jimmy, 13 years ago) |
---|
-
include/parrot/exceptions.h
278 278 # define PARROT_ASSERT(x) ((void)0) 279 279 # define PARROT_ASSERT_ARG(x) (0) 280 280 # define ASSERT_ARGS(a) 281 #else 281 #else /* NDEBUG */ 282 282 # define PARROT_ASSERT(x) (x) ? ((void)0) : Parrot_confess(#x, __FILE__, __LINE__) 283 283 # define PARROT_ASSERT_ARG(x) ((x) ? (0) : (Parrot_confess(#x, __FILE__, __LINE__), 0)) 284 284 285 285 # ifdef _MSC_VER 286 286 # define ASSERT_ARGS(a) 287 # else 287 # else /* _MSC_VER */ 288 288 # define ASSERT_ARGS(a) ASSERT_ARGS_ ## a ; 289 289 # endif /* _MSC_VER */ 290 290 -
include/parrot/interpreter.h
1014 1014 1015 1015 #endif /* PARROT_IN_CORE */ 1016 1016 1017 #ifndef PMC_IS_NULL1018 # define PMC_IS_NULL(pmc) PMC_is_null(NULL, (pmc))1019 #endif1020 1021 1017 #endif /* PARROT_INTERPRETER_H_GUARD */ 1022 1018 1023 1019 /* -
src/pmc.c
84 84 PMC_is_null(SHIM_INTERP, ARGIN_NULLOK(const PMC *pmc)) 85 85 { 86 86 ASSERT_ARGS(PMC_is_null) 87 #if PARROT_CATCH_NULL 88 return pmc == PMCNULL || pmc == NULL; 89 #else 90 return pmc == NULL; 91 #endif 87 return PMC_IS_NULL(pmc); 92 88 } 93 89 94 90 /*