Sign in to follow this  

Get prepared function from context before Execute()

This topic is 1912 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi,
is there any way to get the asIScriptFunction set by asIScriptContext::Prepare(asIScriptFunction*) from the context object before the call to Execute(), in between calls to SetArgXYZ()?

Regards,
Ethon

Share this post


Link to post
Share on other sites
Okay, thank you very much. :)
I am currently writing a library for Angelscript, which makes heavy use of c++ templates to simplify many tasks. It also includes a better wrapper for the generic calling convention using variadic templates.
Is anyone interested in that? I am up to release it, but I won't if nobody is interested, as it's some work to generalize the code for public use. I don't know who the typical Angelscript user is, but it won't compile with MSVC or older versions of GCC/Clang.

Share this post


Link to post
Share on other sites
I'm definitely interested in seeing how you improved the wrappers for the generic calling convention.

That the code doesn't compile on MSVC would probably put off a lot of developers, but don't let that stop you from sharing you library. Perhaps someone can figure out how to get it to compile on MSVC too.

While I've made the decision to support old compilers with the core AngelScript library, I certainly wouldn't expect that of most libraries. Especially with C++11 already available with some very good improvements to the C++ language. For that reason I wouldn't worry too much about not supporting older versions of compilers.

Share this post


Link to post
Share on other sites
Sign in to follow this