Re: Does LuaBind recognize inline functions?

James Porter <[email protected]>
Newsgroups gmane.comp.lang.lua.bind.user
Message-ID <[email protected]>
Secretive Loon wrote:
> Each piece of code is in a separate file. Intellisense goes to the 
> declaration if I right-click and select "Go to Declaration", so it knows 
> it's there. If I'm wrong about the inline functions, and I hope I am, 
> what else could I be doing wrong here? The same code worked fine for a 
> function with the same scope but wasn't inline. All input is appreciated.

There are two problems here:

1) You can't use an inline function if its definition isn't in the 
current translation unit.

2) Why are you trying to inline the function? Luabind wouldn't be able 
to use the function were inline-only (the "inline" keyword is just a 
guideline), since the code for the function wouldn't necessarily exist 
in the binary at all.

- Jim


------------------------------------------------------------------------------
Enter the BlackBerry Developer Challenge  
This is your chance to win up to $100,000 in prizes! For a limited time, 
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize  
details at: http://p.sf.net/sfu/Challenge
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.