<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-GB">
	<id>https://stockhub.co/index.php?action=history&amp;feed=atom&amp;title=Module%3ACallAssert</id>
	<title>Module:CallAssert - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://stockhub.co/index.php?action=history&amp;feed=atom&amp;title=Module%3ACallAssert"/>
	<link rel="alternate" type="text/html" href="https://stockhub.co/index.php?title=Module:CallAssert&amp;action=history"/>
	<updated>2026-04-04T05:00:57Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.5</generator>
	<entry>
		<id>https://stockhub.co/index.php?title=Module:CallAssert&amp;diff=135457&amp;oldid=prev</id>
		<title>imported&gt;Xaosflux: Changed protection level for &quot;Module:CallAssert&quot;: used in interface MediaWiki:Protectedinterface ([Edit=Require administrator access] (indefinite) [Move=Require administrator access] (indefinite))</title>
		<link rel="alternate" type="text/html" href="https://stockhub.co/index.php?title=Module:CallAssert&amp;diff=135457&amp;oldid=prev"/>
		<updated>2019-03-13T12:54:41Z</updated>

		<summary type="html">&lt;p&gt;Changed protection level for &amp;quot;&lt;a href=&quot;/research/Module:CallAssert&quot; title=&quot;Module:CallAssert&quot;&gt;Module:CallAssert&lt;/a&gt;&amp;quot;: used in interface &lt;a href=&quot;/research/MediaWiki:Protectedinterface&quot; title=&quot;MediaWiki:Protectedinterface&quot;&gt;MediaWiki:Protectedinterface&lt;/a&gt; ([Edit=Require administrator access] (indefinite) [Move=Require administrator access] (indefinite))&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;local function pack(...)&lt;br /&gt;
	return {...}, select(&amp;#039;#&amp;#039;, ...)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
local function mapArray(func, array, count)&lt;br /&gt;
	local result = {}&lt;br /&gt;
	for i = 1, count or #array do&lt;br /&gt;
		result[i] = func(array[i])&lt;br /&gt;
	end&lt;br /&gt;
	return result&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
local function quote(value)&lt;br /&gt;
	if type(value) == &amp;#039;string&amp;#039; then&lt;br /&gt;
		return (string.gsub(string.format(&amp;#039;%q&amp;#039;, value), &amp;#039;\\\n&amp;#039;, &amp;#039;\\n&amp;#039;))  -- Outer parentheses remove second value returned by gsub&lt;br /&gt;
	end&lt;br /&gt;
	local str = tostring(value)&lt;br /&gt;
	if type(value) == &amp;#039;table&amp;#039; and str ~= &amp;#039;table&amp;#039; then&lt;br /&gt;
		return &amp;#039;{&amp;#039; .. str .. &amp;#039;}&amp;#039;&lt;br /&gt;
	end&lt;br /&gt;
	return str&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
local function callAssert(func, funcName, ...)&lt;br /&gt;
	local result, resultCount = pack(func(...))&lt;br /&gt;
	if not result[1] then&lt;br /&gt;
		local args, argsCount = pack(...)&lt;br /&gt;
		args = mapArray(quote, args, argsCount)&lt;br /&gt;
		local message = mw.ustring.format(&lt;br /&gt;
			&amp;#039;%s(%s) failed&amp;#039;,&lt;br /&gt;
			funcName,&lt;br /&gt;
			table.concat(args, &amp;#039;, &amp;#039;)&lt;br /&gt;
		)&lt;br /&gt;
		error(message, 2)&lt;br /&gt;
	end&lt;br /&gt;
	return unpack(result, 1, resultCount)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
return callAssert&lt;/div&gt;</summary>
		<author><name>imported&gt;Xaosflux</name></author>
	</entry>
</feed>