Skip to content

Instantly share code, notes, and snippets.

@tsee
Created April 6, 2014 14:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tsee/10007073 to your computer and use it in GitHub Desktop.
Save tsee/10007073 to your computer and use it in GitHub Desktop.
#ifndef PJ_INLINE_H_
#define PJ_INLINE_H_
/* Setup aliases for "static inline" for portability. */
#include <perl.h>
/* Alias Perl's */
#define PJ_STATIC STATIC
#if defined(NDEBUG)
# if defined(_MSC_VER)
# define PJ_STATIC_INLINE STATIC __inline
# else
# define PJ_STATIC_INLINE STATIC inline
# endif
#else
/* avoid inlining under debugging */
# define PJ_STATIC_INLINE STATIC
#endif
#endif
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment