-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathassert.lua
More file actions
59 lines (46 loc) · 2.5 KB
/
assert.lua
File metadata and controls
59 lines (46 loc) · 2.5 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
--[[
assert.lua
version: 15.10.04
Copyright (C) 2015 Jeroen P. Broks
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
arising from the use of this software.
Permission is granted to anyone to use this software for any purpose,
including commercial applications, and to alter it and redistribute it
freely, subject to the following restrictions:
1. The origin of this software must not be misrepresented; you must not
claim that you wrote the original software. If you use this software
in a product, an acknowledgment in the product documentation would be
appreciated but is not required.
2. Altered source versions must be plainly marked as such, and must not be
misrepresented as being the original software.
3. This notice may not be removed or altered from any source distribution.
]]--[[
/*
The file you are currently accessing is a file released in the public
domain, meaning you can freely alter it distribute it without any means of
restriction whatsoever, and the only thing you cannot do is claim ownsership
on it.
Please note, Public Domain means no restriction at all, you may mention me
(Jeroen Broks) as the original programmer, but you don't have to (if you
find anything on the internet claiming to be public domain forcing you to
name the source you obtained it from, then it simply ain't public domain,
meaning the one who told you so is lying about its license type).
Please note, that should any file in the public domain be a clear referrence
to a real person (either dead or alive) the restrictionless status of the
public domain gets a restriction as you may not give out references to
real people out without that person's permission (which is not a copyright
issue), and that is one of the many examples that could void the freedom
of public domain. The file must fulfill the rules of other laws. I guess
that was pretty obvious.
This file is released "AS IS", meaning that the creator of this file
dislaims any form of warranty, without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
In other words, you're using this file at your own risk.
*/
Version: 15.07.20
]]
-- As of 17.04.01 this entire lib has been deprecated (no that ain't an april fools joke). :P
function t_assert(booleanvalue,error,substuff)
if not booleanvalue then Sys.Error(error,substuff) end
end