Make generate_program virtual.

Haskell and OCaml need to override this to put typedefs at the end.


git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665590 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
David Reiss 2008-03-27 21:40:01 +00:00
parent 237171ee81
commit b4d7b89efd

View File

@ -34,9 +34,9 @@ class t_generator {
/**
* Framework generator method that iterates over all the parts of a program
* and performs general actions. This is implemented by the base class and
* should not be overwritten in the subclasses.
* should not normally be overwritten in the subclasses.
*/
void generate_program();
virtual void generate_program();
const t_program* get_program() const { return program_; }