Skip to content

Example of embedding Lupa in a C application with an existing LuaState

License

Notifications You must be signed in to change notification settings

wdhawkins/embedded-lupa

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Embedded Lupa

Embedding Lupa in a Python-embedded C/C++ application with an existing Lua State.

See the example (example.cpp). which requires Lua and Python.

> ./example
...
>>> lua_globals.my_str
'ripe'

To build:

# lua.root is only needed when building the example
make python=/path/to/your/python [lua.include=/path/to/your/lua/install/include] [lua.lib=/path/to/your/lua/install/lib] [CC=]

Tested with Python 2.7 and 3.6.

About

Example of embedding Lupa in a C application with an existing LuaState

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 61.3%
  • Makefile 38.7%