9f6f65d46c2932fc3e9f6a524fc9bf21c847437f
[supertux.git] / tools / miniswig / globals.hpp
1 #ifndef __GLOBALS_H__
2 #define __GLOBALS_H__
3
4 #include "tree.hpp"
5 #include <iostream>
6
7 // parsing
8 extern CompilationUnit* unit;
9 extern bool search_down;
10 extern Namespace* search_namespace;
11 extern Namespace* current_namespace;
12 extern std::string last_docucomment;
13 // the first file indicated by # 1 "..."
14 // (this is what the C preprocessor outputs so that you know which was the
15 // original file before preprocessing
16 extern std::string original_file;
17 // the filename where the current fragment came from (before it was included by
18 // the preprocessor)
19 extern std::string current_file;
20 // get line number inside the current_file
21 int getCurrentLine();
22
23 // config/output
24 extern std::istream* input;
25 extern std::string inputfile;
26 extern std::string modulename;
27 extern std::string selected_namespace;
28
29 #endif
30