Revision: 961
Author: [email protected]
Date: Fri Dec 18 07:09:15 2009
Log: CROAK_IF_NOT_STDIO() can explicitly do nothing when HAS_ZLIB is not  
defined.
(Other conditional code means that it will do nothing.)
http://code.google.com/p/perl-devel-nytprof/source/detail?r=961

Modified:
  /trunk/NYTProf.xs

=======================================
--- /trunk/NYTProf.xs   Fri Dec 18 07:09:11 2009
+++ /trunk/NYTProf.xs   Fri Dec 18 07:09:15 2009
@@ -454,12 +454,16 @@
  #define NYTP_type_of_offset(file) ""
  #endif

-#define CROAK_IF_NOT_STDIO(file, where)             \
+#ifdef HAS_ZLIB
+#  define CROAK_IF_NOT_STDIO(file, where)           \
      STMT_START {                                    \
          if (FILE_STATE(file) != NYTP_FILE_STDIO) {  \
              compressed_io_croak((file), (where));   \
          }                                           \
      } STMT_END
+#else
+#  define CROAK_IF_NOT_STDIO(file, where)
+#endif

  #ifdef HASATTRIBUTE_NORETURN
  __attribute__noreturn__

-- 
You've received this message because you are subscribed to
the Devel::NYTProf Development User group.

Group hosted at:  http://groups.google.com/group/develnytprof-dev
Project hosted at:  http://perl-devel-nytprof.googlecode.com
CPAN distribution:  http://search.cpan.org/dist/Devel-NYTProf

To post, email:  [email protected]
To unsubscribe, email:  [email protected]

Reply via email to