ThePhD / sol2

Sol3 (sol2 v3.0) - a C++ <-> Lua API wrapper with advanced features and top notch performance - is here, and it's great! Documentation:
http://sol2.rtfd.io/
MIT License
4.06k stars 492 forks source link

Generating definition files #1599

Open UltraEngine opened 2 months ago

UltraEngine commented 2 months ago

We are looking to create definition files for our Lua 5.4 API like this: https://luals.github.io/wiki/definition-files/

We have about 800 commands, so we hope to find an automated solution for this.

I was wondering if there is a way to walk through a sol state and print out all the class structure, functions, etc. that are exposed to Lua?