Re: Question about accessing global data from a line function
[email protected] Thu, 1 Dec 2016 16:27:47 +1100
| Newsgroups | perl.inline |
|---|---|
| Message-ID | <19A8826761A3454B84A0796A5550B5EB@OwnerPC311012> |
From: Ron Grunwald via inline Sent: Thursday, December 01, 2016 9:26 AM To: [email protected] ; [email protected] ; Perf Tech Subject: Re: Question about accessing global data from a line function >> You can access package variables directly: >> printf("here: %s\n", SvPV_nolen(get_sv("main::data",0))); > > Wow OK - I didn't know you could do that. I'm wondering if this could be > added into the Inline::C Cookbook? Perhaps under the heading "Accessing > Perl variables directly from a C function". > >Rob, are you still maintaining Inline? No, Ingy has been doing that for the last year or two. Best way to get such an addition into the Cookbook is probably to submit a pull request to github ( https://github.com/ingydotnet/inline-c-pm). Another option would be to open an "issue" on the topic at https://github.com/ingydotnet/inline-c-pm/issues . Cheers, Rob