mcc a86935a39b Allow ffi.metatype to fail so that "busted" unit tests work
On Github we run unit tests inside "busted". At the start of each test "busted" does some sort of trick (clearing package.loaded)? Which causes "require" to run again for all lua files. This breaks ffi.metatype with error "cannot change a protected metatable" if it is called twice with a single type name, since this is true global state. To work around this this patch wraps ffi.metatype calls in a xpcall() so that failure is silently ignored.
2019-11-29 21:13:30 -05:00
2015-09-11 07:59:05 -07:00
2016-07-24 05:27:55 -03:00
2015-09-11 07:59:05 -07:00
2016-02-17 20:23:39 -08:00
2019-11-01 01:02:03 +01:00
2018-01-27 00:47:05 -05:00
2016-09-16 02:21:37 -07:00

Cirno's Perfect Math Library

Build Status Coverage Status

Various useful bits of game math. 3D line intersections, ray casting, vectors, matrices, quaternions, etc.

Intended to be used with LuaJIT and LÖVE (this is the backbone of LÖVE3D).

Online documentation can be found here or you can generate them yourself using ldoc -c doc/config.ld -o index .

Installation

Clone the repository and require it, or if you prefer luarocks: $ luarocks install --server=http://luarocks.org/dev cpml. Add --tree=whatever for a local install.

Description
No description provided
Readme 637 KiB
Languages
Lua 100%