README 263 B

123456789
  1. this example will build an extension module as a shared library, use
  2. loadlib() from within the lua interpreter to load the library, it will
  3. then export a function named greet() which you can call.
  4. > loadlib('hello_world.dll', 'init')()
  5. > greet()
  6. Hello world!
  7. >