Jump to content

Yet another ToLua++ binding generator.


Crazycarpet
 Share

Recommended Posts

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.)

  • Like 1
  • Upvote 1
Link to comment
Share on other sites

  • 1 year later...

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 ;(

ART

CODE

SOUND

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...