log("ERROR: ");
logv(format, ap);
log_flush();
- throw log_cmd_error_expection();
+ throw log_cmd_error_exception();
}
logv_error(format, ap);
#define S__LINE__sub1(x) S__LINE__sub2(x)
#define S__LINE__ S__LINE__sub1(__LINE__)
-struct log_cmd_error_expection { };
+struct log_cmd_error_exception { };
extern std::vector<FILE*> log_files;
extern std::vector<std::ostream*> log_streams;
Pass::call(design, command);
}
}
- catch (log_cmd_error_expection) {
+ catch (log_cmd_error_exception) {
Frontend::current_script_file = backup_script_file;
- throw log_cmd_error_expection();
+ throw log_cmd_error_exception();
}
Frontend::current_script_file = backup_script_file;
try {
log_assert(design->selection_stack.size() == 1);
Pass::call(design, command);
- } catch (log_cmd_error_expection) {
+ } catch (log_cmd_error_exception) {
while (design->selection_stack.size() > 1)
design->selection_stack.pop_back();
log_reset_stack();
try {
std::vector<std::string> new_args(args.begin() + argidx, args.end());
Pass::call(design, new_args);
- } catch (log_cmd_error_expection) {
+ } catch (log_cmd_error_exception) {
for (auto cf : files_to_close)
fclose(cf);
log_files = backup_log_files;
- throw log_cmd_error_expection();
+ throw log_cmd_error_exception();
}
for (auto cf : files_to_close)
try {
std::vector<std::string> new_args(args.begin() + argidx, args.end());
Pass::call(design, new_args);
- } catch (log_cmd_error_expection) {
+ } catch (log_cmd_error_exception) {
design->monitors.erase(&monitor);
- throw log_cmd_error_expection();
+ throw log_cmd_error_exception();
}
design->monitors.erase(&monitor);