summaryrefslogtreecommitdiff
path: root/ragel/gocodegen.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'ragel/gocodegen.cpp')
-rw-r--r--ragel/gocodegen.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/ragel/gocodegen.cpp b/ragel/gocodegen.cpp
index 5ff44c1..d28f0f0 100644
--- a/ragel/gocodegen.cpp
+++ b/ragel/gocodegen.cpp
@@ -632,7 +632,7 @@ void GoCodeGen::STATE_IDS()
out << endl;
- if ( entryPointNames.length() > 0 ) {
+ if ( !noEntry && entryPointNames.length() > 0 ) {
for ( EntryNameVect::Iter en = entryPointNames; en.lte(); en++ ) {
CONST( "int", DATA_PREFIX() + "en_" + *en ) <<
" = " << entryPointIds[en.pos()] << endl;