in reply to Re^2: Trying to translate overflowing JS code to Perl
in thread Trying to translate overflowing JS code to Perl
Instead of "long", you should specify a return type of "int32_t" - tho +ugh I think you'll get away with specifying "int" (thereby avoiding t +he typemap issue that NERDVANA mentioned), which is the same as "int3 +2_t" everywhere.
Thanks for the suggestion (and in the other threads too!). But when I specify a int32_t as return type to NERDVANA's function via Inline::C it compiles fine but Perl complains that it can not find that function. I think it checks the signatures and does not consider a function with return as int32_t as a proper candidate. It works fine for int (and long) return type.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Trying to translate overflowing JS code to Perl
by syphilis (Archbishop) on Dec 01, 2023 at 11:31 UTC | |
by bliako (Abbot) on Dec 01, 2023 at 12:48 UTC | |
by syphilis (Archbishop) on Dec 02, 2023 at 01:52 UTC |