in reply to xs and references
For me, that outputs:use warnings; use Inline C => Config => CLEAN_AFTER_BUILD => 0, BUILD_NOISY => 1; use Inline C => <<'EOC'; int testSub(SV * x) { if(!SvROK(x)) croak ("Not a reference"); sv_setpv(SvRV(x), "Hello!;)\n\0"); return 1; } EOC $init = "barbarella"; $test_var = \$init; testSub($test_var); print "$$test_var\n$init\n";
If you specifically need to see the XS file that Inline::C autogenerated for this particular exercise, you'll find it in the build directory (./_Inline/build).Hello!;) Hello!;)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: xs and references
by Anonymous Monk on Mar 02, 2009 at 07:57 UTC |