in reply to Re^3: XS: exposing C++ library constant as package variable
in thread XS: exposing C++ library constant as package variable
That suggests that get_sv() is returning an invalid SV*; which it shouldn't, if the docs are to be believed:
:) nope, its the call to SvIV_set thats causing it, solution i use is sv_setiv
SV* const_sv = get_sv( "Soivro::SOIVRO", GV_ADD ); sv_setiv( const_sv, FILENAME_MAX ); SvREADONLY_on( const_sv );
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: XS: exposing C++ library constant as package variable ( sv_setiv , SvIV_set )
by ikegami (Patriarch) on Oct 09, 2015 at 05:27 UTC | |
by wisnij (Novice) on Oct 14, 2015 at 16:19 UTC | |
by Anonymous Monk on Oct 15, 2015 at 00:36 UTC | |
|
Re^5: XS: exposing C++ library constant as package variable ( sv_setiv , SvIV_set )
by BrowserUk (Patriarch) on Oct 08, 2015 at 23:44 UTC | |
by Anonymous Monk on Oct 08, 2015 at 23:51 UTC | |
by BrowserUk (Patriarch) on Oct 09, 2015 at 00:12 UTC |