🎉 Celebrating 25 Years of GameDev.net! 🎉

Not many can claim 25 years on the Internet! Join us in celebrating this milestone. Learn more about our history, and thank you for being a part of our community!

Get list of used namespaces

Started by
2 comments, last by Enhex 6 years, 9 months ago

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

Advertisement

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

Thanks, I ended up enumerating global functions.

This topic is closed to new replies.

Advertisement