From: Simon Strandgaard <0bz63fz3m1qt3001@...> Date: 2003-04-13T21:53:49+09:00 Subject: Re: ruby_script() On Sun, 13 Apr 2003 22:19:25 +0900, ts wrote: >>>>>> "S" == Simon Strandgaard <0bz63fz3m1qt3001@sneakemail.com> writes: > > S> Can you explain further ? > > pigeon% cat b.rb > #!/usr/bin/ruby > raise "out" > pigeon% > > pigeon% b.rb > ./b.rb:2: out (RuntimeError) > pigeon% > > ruby display "./b.rb", at the beginning of the line, because it has called > ruby_script("./b.rb") Weird.. I don't see any "embed" in my backtraces? > ./a.out -e 'puts "hello"; raise "out"' hello -e:1: out (RuntimeError) > less main.cpp #include int main(int argc, char *argv[]) { ruby_init(); ruby_init_loadpath(); ruby_script("embed"); // seems not to have any effect ? ruby_options(argc, argv); ruby_run(); } > When you are doing embedding are you then supposed to call ruby_script() ? -- Simon Strandgaard