Skip to content

Latest commit

 

History

History
15 lines (12 loc) · 431 Bytes

README.md

File metadata and controls

15 lines (12 loc) · 431 Bytes

Adapted from: https://lucasklassmann.com/blog/2019-02-02-embedding-lua-in-c/

Just run: odin run .

Shows:

  • Starting a Lua state
  • Defining variables for Lua
  • Doing Lua Strings in Odin
  • Loading scripts
  • Creating functions in Odin for Lua
  • Creating a namespace in Odin for Lua and adding functions
  • Calling Lua functions from Odin with and without return
  • Getting errors from Lua

Don't forget the lua files.