* If you write modifications of your own for GUILE, it is your choice
* whether to permit this exception to apply to your modifications.
* If you do not wish that, delete this exception notice. */
+
+/* Software engineering face-lift by Greg J. Badros, 11-Dec-1999,
+ gjb@cs.washington.edu, http://www.cs.washington.edu/homes/gjb */
\f
# ifdef TIME_WITH_SYS_TIME
#if 0
#define SCM_THREAD_SWITCHING_CODE \
-{ \
+do { \
if (scm_thread_count > 1) \
coop_yield(); \
-} \
+} while (0)
#else
#define SCM_THREAD_SWITCHING_CODE \
-{ \
+do { \
if (scm_thread_count > 1) \
{ \
scm_switch_counter--; \
coop_yield(); \
} \
} \
-} \
+} while (0)
#endif