Skip to content

How to expose a class, instance methods, class methods, class memberes without lua wrapper code #27

@iongion

Description

@iongion

First, hat down for the tremendous and elegant work you made, life saving library 👍
I am trying to wrap my head against the Birdie example, but can one avoid the lua wrapping code and aren't birdie_index and birdie_index present in the global scope ?

I am new to both lua, LuaAutoC and the libraries I am trying to bind, only that I have no clue how to start supporting this, do you have any tips for implementing these classes, basically:

  1. How to define a class
  2. How to add class methods
  3. How to add instance methods

I like very much how this is done with https://github.com/vinniefalco/LuaBridge to be able to create a namespace, add a class, add methods and so on ... but that is C++ and it is overkill for my project, probably if I would use C++, I would choose that, but I can barely write C for now :)

Any tips, code, samples, links would highly be appreciated!
Thank you!(sorry for the git issue, don't know how otherwise I could ask for info)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions