diff options
author | Mikael Djurfeldt <djurfeldt@nada.kth.se> | 1997-08-14 15:00:03 +0000 |
---|---|---|
committer | Mikael Djurfeldt <djurfeldt@nada.kth.se> | 1997-08-14 15:00:03 +0000 |
commit | 0824b52425e03fe1b3c0b6e6b29b127b39ad37ef (patch) | |
tree | a4c8c5a4123fdf48ec35a5ed97d13f5cc316ae92 /libguile/mit-pthreads.c | |
parent | adc02cce188dbc20400197af7ee6f7ceac2e108e (diff) | |
download | guile-0824b52425e03fe1b3c0b6e6b29b127b39ad37ef.tar.gz |
* stacks.c (scm_make_stack), coop-threads.c, mit-pthreads.c
(scm_call_with_new_thread): Bugfix: SCM_WNA should go as third
argument to SCM_ASSERT. Furthermore, the name of the function
should be passed as first argument when signalling
SCM_WNA. (Thanks to Thomas Morgan)
Diffstat (limited to 'libguile/mit-pthreads.c')
-rw-r--r-- | libguile/mit-pthreads.c | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/libguile/mit-pthreads.c b/libguile/mit-pthreads.c index a00aa54f1..2270f5cb0 100644 --- a/libguile/mit-pthreads.c +++ b/libguile/mit-pthreads.c @@ -294,20 +294,26 @@ scm_call_with_new_thread (argl) { register SCM args = argl; SCM thunk, handler; - SCM_ASSERT (SCM_NIMP (args), argl, SCM_WNA, s_call_with_new_thread); + SCM_ASSERT (SCM_NIMP (args), + scm_makfrom0str (s_call_with_new_thread), + SCM_WNA, NULL); thunk = SCM_CAR (args); SCM_ASSERT (SCM_NFALSEP (scm_thunk_p (thunk)), thunk, SCM_ARG1, s_call_with_new_thread); args = SCM_CDR (args); - SCM_ASSERT (SCM_NIMP (args), argl, SCM_WNA, s_call_with_new_thread); + SCM_ASSERT (SCM_NIMP (args), + scm_makfrom0str (s_call_with_new_thread), + SCM_WNA, NULL); handler = SCM_CAR (args); SCM_ASSERT (SCM_NFALSEP (scm_procedure_p (handler)), handler, SCM_ARG2, s_call_with_new_thread); - SCM_ASSERT (SCM_NULLP (SCM_CDR (args)), argl, SCM_WNA, s_call_with_new_thread); + SCM_ASSERT (SCM_NULLP (SCM_CDR (args)), + scm_makfrom0str (s_call_with_new_thread), + SCM_WNA, NULL); } /* Make new thread. */ |