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
Get prepared function from context before Execute()
asIScriptContext::GetFunction()
AngelCode.com - game development and more - Reference DB - game developer references
AngelScript - free scripting library - BMFont - free bitmap font generator - Tower - free puzzle game
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.
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.
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.
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.
AngelCode.com - game development and more - Reference DB - game developer references
AngelScript - free scripting library - BMFont - free bitmap font generator - Tower - free puzzle game
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement