Hi folks, I am trying to understand them. What I understood so that is that from SLANG we can say:<br><br><export: true> ----> it will add the keyword EXPORT(sqInt) functXX();<br clear="all"><br><api> ----> it WONT put the static prefix ->> (sqInt) funcXXX() <br>
<br>if nothing is said -> it puts the static ->> static (sqInt) functXXX()<br><br>If I understood correctly, static functions are not callable outside of the C file they are defined in. So, if you don't put static, then they are callable. <br>
<br>I am correct with all that ?<br><br>So..first question, why we need the this ? when I should declare a function/method as API ? is it possible that this is when plugins need to call a function from the VM ?<br><br>Second, when should I need to declare a method/function as EXPORT ? Are there any other reason that being able to call them from GDB ?<br>
<br>Third, why there are methods which do not put the <export: true> but in fact are added in #requiredMethodNames and hence exported. Why they cannot have the <export: true> instead of being hardcoded there? <br>
<br>Thanks a lot in advance,<br><br>-- <br>Mariano<br><a href="http://marianopeck.wordpress.com" target="_blank">http://marianopeck.wordpress.com</a><br><br>