BASIC compiler/interpreter for PIC32MX/MZ-80K
修訂 | ca5f0398cddb6f8e974740a35a49d9cd4047b96f (tree) |
---|---|
時間 | 2019-02-11 16:19:29 |
作者 | Katsumi <kmorimatsu@sour...> |
Commiter | Katsumi |
Support using a class in another class.
@@ -109,7 +109,7 @@ char* compile_file(){ | ||
109 | 109 | } |
110 | 110 | |
111 | 111 | int compile_and_link_file(char* buff,char* appname){ |
112 | - int i; | |
112 | + int i,j; | |
113 | 113 | char* err; |
114 | 114 | |
115 | 115 | while(1){ |
@@ -129,7 +129,9 @@ int compile_and_link_file(char* buff,char* appname){ | ||
129 | 129 | |
130 | 130 | // If compiling a class file is required, do it. |
131 | 131 | if (err==ERR_COMPILE_CLASS) { |
132 | + j=g_compiling_class; | |
132 | 133 | i=compile_and_link_class(buff, g_class); |
134 | + g_compiling_class=j; | |
133 | 135 | if (i) return i; |
134 | 136 | // Continue compiling current file from the beginning. |
135 | 137 | continue; |