comparison: util/xpcall.lua
util/xpcall.lua
- changeset 0
- 550f506de75a
equal
deleted
inserted
replaced
|
1 local xpcall = xpcall; |
|
2 |
|
3 if select(2, xpcall(function (x) return x end, function () end, "test")) ~= "test" then |
|
4 xpcall = require"util.compat".xpcall; |
|
5 end |
|
6 |
|
7 return { |
|
8 xpcall = xpcall; |
|
9 }; |