diff options
Diffstat (limited to 'main.rs')
-rw-r--r-- | main.rs | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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(); } |