Skip to content

Instantly share code, notes, and snippets.

@echiesse
Created March 15, 2019 03:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save echiesse/274e2107664348cff89dbfa33f9911b0 to your computer and use it in GitHub Desktop.
Save echiesse/274e2107664348cff89dbfa33f9911b0 to your computer and use it in GitHub Desktop.
Lua test script for creating a metatable from C API
print(getmetatable(A))
for i, v in pairs(A) do
print(i, v)
end
A.a = "banana"
A.subtable.a = "abacate"
print(A.a)
A.subtable.b = "repolho"
print(A.b)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment