summaryrefslogtreecommitdiffstats
path: root/main.rs
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2013-03-11 03:15:40 -0500
committerJesse Luehrs <doy@tozt.net>2013-03-11 03:15:40 -0500
commitd62ab0a4be7438efc1a30241fe9ef85e7e8c4972 (patch)
tree95f58e7bf5945e88f3f27e7746544c17441e75bd /main.rs
parentbd93ba9d4419899694f16317d288125762dcaa33 (diff)
downloadrust-lua-d62ab0a4be7438efc1a30241fe9ef85e7e8c4972.tar.gz
rust-lua-d62ab0a4be7438efc1a30241fe9ef85e7e8c4972.zip
provide a method interface
Diffstat (limited to 'main.rs')
-rw-r--r--main.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/main.rs b/main.rs
index 1e50e6f..b96119c 100644
--- a/main.rs
+++ b/main.rs
@@ -2,8 +2,8 @@ extern mod lua;
fn main() {
let state = lua::newstate();
- lua::openlibs(state);
- lua::loadstring(state, os::args()[1]);
- lua::call(state, 0, 0);
- lua::close(state);
+ state.openlibs();
+ state.loadstring(os::args()[1]);
+ state.call(0, 0);
+ state.close();
}