From c2c853fa212adcdc29dae4f4d01d6ac907d60c58 Mon Sep 17 00:00:00 2001 From: Joshua Haberman Date: Sun, 31 Jul 2011 17:30:06 -0700 Subject: More work on Lua extension. --- lang_ext/lua/test.lua | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'lang_ext/lua/test.lua') 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 -- cgit v1.2.3