From: ts Date: 2003-04-13T23:25:49+09:00 Subject: Re: ruby_script() >>>>> "S" == Simon Strandgaard <0bz63fz3m1qt3001@sneakemail.com> writes: S> Is'nt "embed" supposed to be outputted in the backtrace? The backtrace are outputted for each frame created, when you write pigeon% cat a.c #include static VALUE tt() { rb_require("b.rb"); return Qnil; } int main(int argc, char *argv[]) { int res; ruby_init(); ruby_init_loadpath(); ruby_script("embed"); // seems not to have any effect ? rb_protect(tt, 0, &res); if (res) { VALUE err = rb_inspect(ruby_errinfo); fprintf(stdout, "ERROR %s\n", StringValuePtr(err)); rb_backtrace(); } return 0; } pigeon% ruby create a frame *only* for rb_require() (rb_laod(), none of the commands ruby_init(), ruby_init_loadpath(), rb_protect() create a frame. Guy Decoux