diff options
author | Jesse Luehrs <doy@tozt.net> | 2011-07-08 03:01:49 -0500 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2011-07-08 03:01:49 -0500 |
commit | 1a0c3c3a02da09abc11bbad291d09a41c1850d1d (patch) | |
tree | c19787eda8fa4dd155e028752cc38bc19dad0aca /lib/smartmatch/engine/core.pm | |
parent | 046119999e010e4a38b67f5f194baaf60e7c8707 (diff) | |
download | smartmatch-engine-core-1a0c3c3a02da09abc11bbad291d09a41c1850d1d.tar.gz smartmatch-engine-core-1a0c3c3a02da09abc11bbad291d09a41c1850d1d.zip |
split this out into its own dist, and implement the custom opcode
Diffstat (limited to 'lib/smartmatch/engine/core.pm')
-rw-r--r-- | lib/smartmatch/engine/core.pm | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/lib/smartmatch/engine/core.pm b/lib/smartmatch/engine/core.pm index 410c983..948152f 100644 --- a/lib/smartmatch/engine/core.pm +++ b/lib/smartmatch/engine/core.pm @@ -2,6 +2,21 @@ package smartmatch::engine::core; use strict; use warnings; use 5.010; +# ABSTRACT: default smartmatch implementation from 5.10 - 5.14 + +use parent 'DynaLoader'; + +sub dl_load_flags { 0x01 } + +__PACKAGE__->bootstrap( + # we need to be careful not to touch $VERSION at compile time, otherwise + # DynaLoader will assume it's set and check against it, which will cause + # fail when being run in the checkout without dzil having set the actual + # $VERSION + exists $smartmatch::engine::core::{VERSION} + ? ${ $smartmatch::engine::core::{VERSION} } : (), +); +smartmatch::engine::core::init(__PACKAGE__->can('match')); use B; use Carp qw(croak); |