Posted to tcl by jima at Tue Aug 27 10:53:08 GMT 2013view pretty

Cfun1(...) {

 /* sets up something in cData */

 NRE_register_callback(Cfun2)
 NRE_eval_whatever... /* might give control to other coro (?) */
}

Cfun2(...) {
 /* needs to set up something in cData  too */
}