Merge pull request #2 from Blub/blub/cooking

Blub/cooking
fix generate_prototype off by 1 causing prototypes to be omitted