// (c) Tuomas J. Lukka #include #include #include #define VOB_JAVAPREFIX "Java_org_nongnu_libvob_gl_GLRen_" class Generator; extern void registerGenerator(Generator *g); extern std::ostringstream g_JAVASTREAM; extern std::ostringstream g_TRANSJAVASTREAM; #define S3(i) #i #define S2(i) S3(i) #define S(i) S2(i) class Generator { public: std::ostringstream JNISTREAM; std::ostringstream JAVASTREAM; std::ostringstream TRANSJAVASTREAM; std::string outfile, headerfile; Generator(std::string outfile, std::string headerfile) : outfile(outfile), headerfile(headerfile) { registerGenerator(this); } void generate() { g_JAVASTREAM << "// "<< headerfile<<"\n "<\n"; jni << "#include \n"; jni << "#include "<