From ad307cc72c80f9fc81affe8723682b685f60914f Mon Sep 17 00:00:00 2001 From: redpony Date: Sun, 19 Sep 2010 19:52:07 +0000 Subject: big refactor git-svn-id: https://ws10smt.googlecode.com/svn/trunk@649 ec762483-ff6d-05da-a07a-a48fb63a330f --- decoder/cdec_ff.cc | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'decoder/cdec_ff.cc') 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(true); RegisterFsaImpl(true); -- cgit v1.2.3