From d62ab0a4be7438efc1a30241fe9ef85e7e8c4972 Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Mon, 11 Mar 2013 03:15:40 -0500 Subject: provide a method interface --- main.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'main.rs') 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(); } -- cgit v1.2.3-54-g00ecf