1
0

Moved version and improved documentation

This commit is contained in:
Jon Michael Aanes 2025-04-17 16:36:14 +02:00
parent f63a48809e
commit a63566cdad
2 changed files with 13 additions and 6 deletions

View File

@ -1,3 +1,15 @@
--- # Assert Gooder
--
-- Supercharged assert replacement.
--
-- Lua Library that replaces the default `assert` function with one that can
-- emit improved error messages. The improved assert function parses the
-- assert condition, inspects the state of the program and emits an improved
-- error message.
--
-- @author Jon Michael Aanes (jonjmaa@gmail.com)
local _VERSION = '0.5.2'
local lexer = assert(require((... and select('1', ...):match('.+%.') or '')..'lua_lang'), '[assert-gooder]: Could not load vital library: lua_lang')
local shunting_yard = assert(require((... and select('1', ...):match('.+%.') or '')..'Parser'), '[assert-gooder]: Could not load vital library: Parser')
@ -764,4 +776,3 @@ return function (condition, format, ...)
-- Throw error message
error(table.concat(l, ''), 2)
end

View File

@ -1,5 +1 @@
local _VERSION = '0.5.2'
local assert_gooder = assert(require((... and select('1', ...):match('.+')..'.' or '')..'assert-gooder'), '[assert-gooder]: Could not load vital library: assert-gooder')
assert_gooder._VERSION = _VERSION
return assert_gooder
return assert(require((... and select('1', ...):match('.+')..'.' or '')..'assert-gooder'), '[assert-gooder]: Could not load vital library: assert-gooder')