summaryrefslogtreecommitdiff
path: root/pp_sys.c
diff options
context:
space:
mode:
authorLukas Mai <l.mai@web.de>2014-11-29 12:17:05 +0100
committerFather Chrysostomos <sprout@cpan.org>2014-11-29 06:11:08 -0800
commit6d59e610a3f269be73ffea56a90d1cd7dc8bf2fd (patch)
tree3323ee9f84c4e0909c8066796c8ea4bfa4e36bbd /pp_sys.c
parente59642234eb8b658c16fed728636bfbbc49c4514 (diff)
downloadperl-6d59e610a3f269be73ffea56a90d1cd7dc8bf2fd.tar.gz
define and use STATIC_ASSERT_STMT for compile-time invariants
Diffstat (limited to 'pp_sys.c')
-rw-r--r--pp_sys.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/pp_sys.c b/pp_sys.c
index 0bc1aa179f..8f6c75326c 100644
--- a/pp_sys.c
+++ b/pp_sys.c
@@ -534,9 +534,9 @@ Perl_tied_method(pTHX_ SV *methname, SV **sp, SV *const sv,
PERL_ARGS_ASSERT_TIED_METHOD;
/* Ensure that our flag bits do not overlap. */
- assert((TIED_METHOD_MORTALIZE_NOT_NEEDED & G_WANT) == 0);
- assert((TIED_METHOD_ARGUMENTS_ON_STACK & G_WANT) == 0);
- assert((TIED_METHOD_SAY & G_WANT) == 0);
+ STATIC_ASSERT_STMT((TIED_METHOD_MORTALIZE_NOT_NEEDED & G_WANT) == 0);
+ STATIC_ASSERT_STMT((TIED_METHOD_ARGUMENTS_ON_STACK & G_WANT) == 0);
+ STATIC_ASSERT_STMT((TIED_METHOD_SAY & G_WANT) == 0);
PUTBACK; /* sp is at *foot* of args, so this pops args from old stack */
PUSHSTACKi(PERLSI_MAGIC);