Skip to content

Extends the Lua C API with Moonscript-compatible class support, with or without Moonscript.

License

Notifications You must be signed in to change notification settings

mousebyte/luaclasslib

Repository files navigation

LuaClassLib

Extends the Lua C API to provide Moonscript-compatible class support, with or without Moonscript.

Features

  • Create, register, and construct Moonscript-like classes from C code
  • Create classes for user data objects
  • Introspect objects and classes
  • Call methods on objects
  • Inject (override) class methods

Full documentation is available on Github Pages.

Installation

LCL is available on the Arch User Repository:

yay -S luaclasslib

You can also build from source:

git clone --recurse-submodules https://github.com/mousebyte/LuaClassLib.git
cd LuaClassLib
mkdir build && cd build
cmake .. -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release
make && sudo make install

Next Steps

  • Expand documentation with examples
  • Add to AUR
  • Add to other package managers

About

Extends the Lua C API with Moonscript-compatible class support, with or without Moonscript.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published