fixed bug in #load

This commit is contained in:
udo
2022-01-30 12:45:18 +00:00
parent 5df52146be
commit 3a9dfba86c
6 changed files with 14 additions and 4 deletions
+2 -1
View File
@@ -152,10 +152,11 @@ String preprocess_shared_unit_char_wise(Request* context, SharedUnit* su, String
pc.resize(pc.length() - current_line.length());
nibble(current_line, "\"");
String unit_name = nibble(current_line, "\"");
//printf("(i) #load %s\n", unit_name.c_str());
SharedUnit* sub_su = compiler_load_shared_unit(context, unit_name, su->src_path, true);
if(sub_su)
{
pc.append("#include \"" + sub_su->pre_file_name + "\"");
pc.append("#include \"" + sub_su->bin_path + "/" + sub_su->pre_file_name + "\"\n");
}
}
else if(current_line.length() == 4 && current_line.substr(0, 4) == "API ")