Jump to content

  • Log In with Google      Sign In   
  • Create Account


- - - - -

Get prepared function from context before Execute()


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
3 replies to this topic

#1 Ethon   Members   -  Reputation: 107

Like
0Likes
Like

Posted 06 October 2012 - 05:58 AM

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

Sponsor:

#2 Andreas Jonsson   Moderators   -  Reputation: 3197

Like
0Likes
Like

Posted 06 October 2012 - 08:59 AM

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

#3 Ethon   Members   -  Reputation: 107

Like
0Likes
Like

Posted 23 October 2012 - 05:26 AM

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.

#4 Andreas Jonsson   Moderators   -  Reputation: 3197

Like
0Likes
Like

Posted 23 October 2012 - 10:09 AM

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.
AngelCode.com - game development and more - Reference DB - game developer references
AngelScript - free scripting library - BMFont - free bitmap font generator - Tower - free puzzle game




Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS