Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: Inline CPP function not found

by educated_foo (Vicar)
on May 16, 2011 at 21:01 UTC ( [id://905155]=note: print w/replies, xml ) Need Help??


in reply to Inline CPP function not found

As far as I can tell from Inline::CPP::grammar, Inline::CPP doesn't handle reference parameters, so it's probably skipping your function. Try using pointers instead.

EDIT: I'm wrong -- it does at least parse it, so while I'm pretty sure Inline::CPP is skipping it as something it can't handle, I'm not sure what the problem is.

Replies are listed 'Best First'.
Re^2: Inline CPP function not found
by markov (Scribe) on May 16, 2011 at 21:15 UTC
    It think the parser does understand it. In Inline/CPP/grammar.pm
    type1: TYPE star(s?) star: '*' | '&'
    So, if 'double *' is parsed, than 'double &' as well. Probably I do need to do something with typemaps or function rewrites. Would be nice if someone knows what.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://905155]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (1)
As of 2024-04-19 00:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found