A demo of how to make simple C modules for Lua
C Lua
Switch branches/tags
Nothing to show
Latest commit 3ad1155 Dec 10, 2010 @norman norman Initial commit
Permalink
Failed to load latest commit information.
Makefile Initial commit Dec 10, 2010
README.md Initial commit Dec 10, 2010
hello-scm-1.rockspec Initial commit Dec 10, 2010
hello.c Initial commit Dec 10, 2010
test.lua Initial commit Dec 10, 2010

README.md

hello Lua!

This is a simple hello-world module for Lua, intended for learning about writing modules in C.

It shows how to:

  • Make the C module
  • Make a basic Makefile to compile it
  • Make a rockspec to distribute it with LuaRocks
  • Make a test program to test it

The test program can be executed as plain Lua, or with Shake.