summaryrefslogtreecommitdiff
path: root/decoder/cdec_ff.cc
diff options
context:
space:
mode:
authorredpony <redpony@ec762483-ff6d-05da-a07a-a48fb63a330f>2010-09-19 19:52:07 +0000
committerredpony <redpony@ec762483-ff6d-05da-a07a-a48fb63a330f>2010-09-19 19:52:07 +0000
commitad307cc72c80f9fc81affe8723682b685f60914f (patch)
tree2fb3d095da2e1fc097cda8895c318d9caee5f7ce /decoder/cdec_ff.cc
parent31180b4b707aba7c18a78670846ae3d2f3ff0b09 (diff)
big refactor
git-svn-id: https://ws10smt.googlecode.com/svn/trunk@649 ec762483-ff6d-05da-a07a-a48fb63a330f
Diffstat (limited to 'decoder/cdec_ff.cc')
-rw-r--r--decoder/cdec_ff.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/decoder/cdec_ff.cc b/decoder/cdec_ff.cc
index 98d4711f..84ba19fa 100644
--- a/decoder/cdec_ff.cc
+++ b/decoder/cdec_ff.cc
@@ -13,6 +13,12 @@
#include "ff_register.h"
void register_feature_functions() {
+ static bool registered = false;
+ if (registered) {
+ assert(!"register_feature_functions() called twice!");
+ }
+ registered = true;
+
//TODO: these are worthless example target FSA ffs. remove later
RegisterFsaImpl<SameFirstLetter>(true);
RegisterFsaImpl<LongerThanPrev>(true);