Crazycarpet Posted May 13, 2017 Posted May 13, 2017 So I know this is like the 3rd one I wrote... but I use ToLua++ in over 4 of my projects (1 not related to LE) and writing/updating pkg files is a tremendous headache so this 2nd attempt at a ToLua++ binding generator solves all my issues, finally. https://bitbucket.org/Codeblockz/toluapkggenerator2 Same as my first one except it has many naive flaws fixed, detects ends of class/namespace scopes to prevent some past bugs caused by the generator not knowing when a class declaration ends. Also adds support for nested namespaces. I.E: namespace NS1 { namespace NS2 { namespace NS3 { void DoStuff(); //lua } } } The Lua usage would be: NS1.NS2.NS3.DoStuff() It also adds support/improves the handling of many misc situations. Enums *Remember that enums ignore namespaces* Example: namespace SomeNamespace { enum MyEnum { //lua EnumOne, EnumTwo }; } Lua usage: MyEnum.EnumOne MyEnum.EnumTwo Note how the namespace is ignored. (NOTE: I don't THINK this would work on the Leadwerks base-code til I apply the ToLua++ bug workaround that I did to ToLuaPkgGenerator 1.) 1 1 Quote
ScarPunk Posted August 11, 2018 Posted August 11, 2018 Nice tool ! but i have a problem when i am execution _toluaGenerate "toluapp.exe" is not recognized as an internal order or external, an executable program or a batch file. The specified file can not be found. I already search on internet a tolua++ download but all are done ;( Quote ART CODE SOUND
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.