(svn r18556) -Fix (r17005): squirrel export didn't accept negative constants

pull/155/head
smatz 15 years ago
parent a5e8465a4a
commit 37c48a7727

@ -349,7 +349,7 @@ BEGIN {
}
# Add a const (non-enum) value
/^[ ]*static const \w+ \w+ = \(?\w*\)?\w+;/ {
/^[ ]*static const \w+ \w+ = -?\(?\w*\)?\w+;/ {
const_size++
const_value[const_size] = $4
next

Loading…
Cancel
Save