         }
         
         if status == LUA_OK {
-            l_print(&output)
+            l_print(results: &output)
         } else {
-            report(status, results: &output)
+            report(status: status, results: &output)
         }
         
         if status != LUA_ERRINCOMPLETE {

    
    
    
    func l_print(inout results: [String])
    {
        let n = lua_gettop(self.L)
        if n > 0 {
            lua_getglobal(self.L, "tostring")
            for var i = n; i > 0; i--
            {
                lua_pushvalue(self.L, -1)
                lua_pushvalue(self.L, i)
                lua_callk(self.L, 1, 1, 0, nil)
                let msg = String(UTF8String: lua_tolstring(L, -1 * i, nil))
                
                if let errmsg = msg
                {
                    results.append(errmsg)
                }
                
                lua_pop(self.L, 1)
            }

    func removeInput()
    {
        let n = lua_gettop(self.L)
        for _ in (1..<n) {
        //for var i: Int32 = 1; i < n; i++ {
            lua_remove(self.L, 1)
        }
    }
