Giter Club home page Giter Club logo

apollo's Introduction

Title: Apollo Readme

apollo

Convert anything from Lua to C++ and back!

Build Status

This library is in a quite usable alpha state. It can be built as static library or DLL/.so and works with Lua 5.2 to 5.3. Documentation is here:

http://oberon00.github.io/apollo/

Features

  • Functions are first-class objects: You can push a function to Lua and retrieve it back. When you pushed it as a function pointer, you can retrieve it back as function pointer, std::function and boost::function are also fully supported (they can even hold functions written in Lua!)
  • If you don't need to retrieve your functions back from Lua, apollo offers function wrappers that have zero overhead compared to a hand-written wrapper (to_raw_function<F, FVal>()).
  • Supports converting classes with multiple bases to any unambiguous one (virtual inheritance is not supported).
  • Access to primitives (push, from_stack<T>, is_convertible<T>) allows you to build the abstractions you need or hand-write a custom wrapper if the included high-level abstractions don't fit your needs.
  • Useful Lua programming utilities like registry_reference, stack_balance or exceptions_to_lua_errors and the complementary throwing pcall.

Also, the implementation uses variadic templates instead of preprocessor metaprogramming for faster builds and better auto-completion support.

Requirements

  • A up-to-date, reasonably C++11-compliant compiler and standard library. Tested with gcc 4.8, Clang 3.4 with libstdc++-4.8 (see Travis CI) and MSVC 12 (2013).
  • Lua in version 5.1, 5.2 or 5.3.
  • Boost 1.56 Presently used modules are Assert, Config, Core, Exception and TypeIndex. For the tests, Preprocessor and Test are used additionally.
  • A reasonably recent CMake for building.

apollo's People

Contributors

oberon00 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

apollo's Issues

Document/enhance make_function(_with).

In header make_function.hpp

apollo::make_function(_with), are useful for custom functions. Support for manually specifying signatures, or detecting them from a non-overloaded operator() would also be nice.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.