> compile NEMU
ysyx_22040000 李心杨 Linux calcite 6.1.75 #1-NixOS SMP PREEMPT_DYNAMIC Thu Jan 25 23:27:52 UTC 2024 x86_64 GNU/Linux 18:46:11 up 1 day 4:22, 2 users, load average: 0.76, 1.07, 0.74
This commit is contained in:
parent
e4812c59d5
commit
92b03e579b
1 changed files with 2 additions and 1 deletions
|
@ -76,6 +76,7 @@ int wp_add(char * expr) {
|
||||||
tail->next = wp;
|
tail->next = wp;
|
||||||
tail = wp;
|
tail = wp;
|
||||||
}
|
}
|
||||||
|
wp->expr = expr;
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -104,7 +105,7 @@ static bool wp_check_change(WP* wp) {
|
||||||
|
|
||||||
result = parse_expr(wp->expr, &success);
|
result = parse_expr(wp->expr, &success);
|
||||||
if (!success) {
|
if (!success) {
|
||||||
panic("Failed to evaluate %s", wp->expr);
|
panic("Failed to evaluate expression `%s`", wp->expr);
|
||||||
}
|
}
|
||||||
if (result != wp->val) {
|
if (result != wp->val) {
|
||||||
wp->val = result;
|
wp->val = result;
|
||||||
|
|
Loading…
Reference in a new issue