awesome/lib/gears
Uli Schlachter e50fa84f61 gears.protected_call: Automatically detect xpcall features
In Lua 5.1, xpcall() has exactly two arguments: The function to call and
the error handler. Everywhere else, xpcall() passes extra arguments on
to the function to call. This includes LuaJIT, however since LuaJIT sets
_VERSION to "Lua 5.1", so far gears.protected_call used the workaround
for Lua 5.1 here.

This commit switches gears.protected_call to actually test for this
feature instead of just guessing based on _VERSION. Thus, this now also
uses the better code with LuaJIT.

Signed-off-by: Uli Schlachter <psychon@znc.in>
2019-02-15 09:25:06 +01:00
..
object doc: Merge gears.object and gears.object.properties 2018-12-31 17:50:37 -05:00
sort gears: Add a new sort module 2018-03-04 01:29:33 -05:00
cache.lua Remove @release @AWESOME_VERSION@ everywhere (#1157) 2016-10-09 22:36:20 +02:00
color.lua Give the docs for gears.color some improvements 2018-01-22 11:53:39 +01:00
debug.lua gears.debug.print_{warning_error}: add "awesome: " prefix (#1968) 2017-08-10 14:08:32 +02:00
filesystem.lua Deprecate gears.filesystem.get_dir 2018-03-11 16:08:07 +01:00
geometry.lua gears.geometry: Make area_intersect_area() public 2018-05-19 00:08:19 +03:00
init.lua gears: Add a new sort module 2018-03-04 01:29:33 -05:00
math.lua Move math functions out of awful.util into new gears.math 2017-03-02 18:15:59 -06:00
matrix.lua gears.matrix: Add create_rotate_at() (#1181) 2016-10-25 15:37:49 +02:00
object.lua object: Add support for signal forwarding 2017-08-19 22:52:08 -04:00
protected_call.lua gears.protected_call: Automatically detect xpcall features 2019-02-15 09:25:06 +01:00
shape.lua shape.arc: Prevent an angle underflow when rounded edges are enabled. 2019-01-26 12:13:13 -05:00
string.lua Fix incorrect @name annotation in gears.string 2018-09-26 10:37:59 +02:00
surface.lua shims: Use cairo PNG support instead of GDK 2018-02-25 18:01:08 -05:00
table.lua gears: Add `find_keys` and `find_first_key` to `gears.table`. 2019-01-24 06:31:57 -05:00
timer.lua timer: Add a reminder to apply the existing naming conventions 2018-08-06 19:03:25 -04:00
wallpaper.lua Add some introductionary documentation to gears.wallpaper 2018-01-22 11:22:05 +01:00