Skip to content

roa/c_lua_example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 

Repository files navigation

How to build:

1. gcc -O2 -fpic -c -o test.o test.c 
2. gcc -O -shared -fpic -o test.so test.o

How to use:

require "test"

Important:

Dont use the same name for the lib and the script as lua prefers files with the ".lua" extension!

About

example c function for lua

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published