Advertisement

Get list of used namespaces

Started by September 26, 2017 10:09 PM
2 comments, last by Enhex 7 years, 2 months ago

Is it possible to get a list of namespaces used by a module?

You could enumerate the global properties, functions, and types and look-up the namespace of each.

Finding out if a function accesses a variable, function, or type from a different namespace is not as easy though. With some work it ought to be possible to enumerate the instructions and verify the entities accesses using the same interface used by JIT compilers.

 

What do you need this for? If it is something that could be useful for others too I'll evaluate implementing some interface to make it easier to enumerate used namespaces.

AngelCode.com - game development and more - Reference DB - game developer references
AngelScript - free scripting library - BMFont - free bitmap font generator - Tower - free puzzle game

Advertisement

Thanks, I ended up enumerating global functions.

This topic is closed to new replies.

Advertisement