diff options
Diffstat (limited to 'libc/inc/assert.h')
-rw-r--r-- | libc/inc/assert.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libc/inc/assert.h b/libc/inc/assert.h index f4fa4b4..3e45f44 100644 --- a/libc/inc/assert.h +++ b/libc/inc/assert.h @@ -10,9 +10,9 @@ #define assert(exp) \ if (!(exp)) { \ printf("%s:%d: %s: Assertion '%s' failed\n", __FILE__, __LINE__, __func__, #exp); \ - struct proc *proc = proc_current(); \ - if (proc) \ - proc_exit(proc, 1); \ + struct proc *assert_proc = proc_current(); \ + if (assert_proc) \ + proc_exit(assert_proc, 1); \ else \ __asm__ volatile("cli\nhlt"); \ } |