Skip to content

An organized copy of LuaBind-Deboostified repo https://github.com/WohlSoft/luabind-deboostified especially for Moondust and LuaJIT use. Includes a copy of PUC-RIO Lua 5.3 as a fall-back.

License

Notifications You must be signed in to change notification settings

WohlSoft/moondust-luabind

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

luabind

This is a copy of LuaBind deboostified from this repository with a different organizing: https://github.com/WohlSoft/luabind-deboostified

It has a different organizing:

  • It includes a PUI-Rio LUA 5.3 as a fallback for platforms which can't use LuaJIT
  • Different CMake build script

This module is intendent to be a part of Moondust project.


Currently, at least the following compilers are supported:

  • MSVC 2015 (up from 2013 update 3 since we've introduced light constexpr usage)
  • Clang/LLVM 3.6.0
  • G++ 4.9

If you can confirm support on another platform, please let me know!

Create Lua bindings for your C++ code easily - my improvements

  • Variadic templates.
  • Got rid of the arrays created in invoke.
  • All boost removed.
  • No backward compatibility to any old or faulty (MS) compilers.
  • This is 24mb of Intellisense db versus close to 90mb with original luabind, also Intellisense is not crippled by boost preprocessor usage.

Important: This is not drop in replacable.

  • The template parameters to class class_ work a bit differently to the original (Wrapper and Holder have a specific index, if you don't want one of them, use null_type and/or no_bases)
  • The policies are not implemented as functions with a wrapped integer argument, they're aliases to policy lists containing exactly the one respective policy
  • The error callback is no longer the function that is pushed as pcall's error handler, but is instead called to push the error handler onto the stack
  • Exceptions thrown by luabind will now carry the error message, it no longer has to be pulled from the lua stack separately
  • Since the requirement to Boost.Optional has been dropped, object_cast_nothrow now has a mandatory default argument that is returned when the cast failed. Use boost::optional() for that to get the old behavior

About

An organized copy of LuaBind-Deboostified repo https://github.com/WohlSoft/luabind-deboostified especially for Moondust and LuaJIT use. Includes a copy of PUC-RIO Lua 5.3 as a fall-back.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published