summaryrefslogtreecommitdiff
path: root/lang_ext/lua/test.lua
diff options
context:
space:
mode:
authorJoshua Haberman <jhaberman@gmail.com>2011-07-31 17:30:06 -0700
committerJoshua Haberman <jhaberman@gmail.com>2011-07-31 17:30:06 -0700
commitc2c853fa212adcdc29dae4f4d01d6ac907d60c58 (patch)
tree6febbc922a9e9b0139e84ee7e33ae2cda37e1cb0 /lang_ext/lua/test.lua
parent57abebaaf902436f8de8e50f7054c25b391067ac (diff)
More work on Lua extension.
Diffstat (limited to 'lang_ext/lua/test.lua')
-rw-r--r--lang_ext/lua/test.lua8
1 files changed, 5 insertions, 3 deletions
diff --git a/lang_ext/lua/test.lua b/lang_ext/lua/test.lua
index e5bf0ce..42bce25 100644
--- a/lang_ext/lua/test.lua
+++ b/lang_ext/lua/test.lua
@@ -21,16 +21,18 @@ print(B)
print(C)
a = A()
-print("YO! a.a=" .. tostring(a.a))
+a2 = upb.Message(A)
+print("YO! a.a=" .. tostring(a.a) .. ", a2.a=" .. tostring(a2.a))
a.a = 2
-print("YO! a.a=" .. tostring(a.a))
+a2.a = 3
+print("YO! a.a=" .. tostring(a.a) .. ", a2.a=" .. tostring(a2.a))
A = symtab:lookup("A")
if not A then
error("Could not find A")
end
-f = io.open("../../src/descriptor.pb")
+f = io.open("../../upb/descriptor.pb")
if not f then
error("Couldn't open descriptor.pb, try running 'make descriptorgen'")
end
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback