How to Get Function Body using Angel APIs
Hi, Currently we are getting information about the function parameters and variables used by the function. Is it possible to get the statements of the functions using Angel API's. Pls guide. Thanks. Example: AngelScript: void function ABC(int i) { int j = i + 10; return; } C/C++ Code: How can we get (int j = i + 10; and return;) in C++ code? regards ragha
AngelScript doesn't keep a copy of the original script. So you can only get the function body by reading the original script file.
If you use set the script section name as the name of the script file, then you can use asIScriptFunction::GetScriptSectionName() to determine which file the body is in, then it is just a matter of finding it there.
Regards,
Andreas
If you use set the script section name as the name of the script file, then you can use asIScriptFunction::GetScriptSectionName() to determine which file the body is in, then it is just a matter of finding it there.
Regards,
Andreas
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
Recommended Tutorials
Advertisement