<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="zh">
	<id>https://nijigen.wiki/index.php?action=history&amp;feed=atom&amp;title=Module%3ACallAssert</id>
	<title>Module:CallAssert - 版本历史</title>
	<link rel="self" type="application/atom+xml" href="https://nijigen.wiki/index.php?action=history&amp;feed=atom&amp;title=Module%3ACallAssert"/>
	<link rel="alternate" type="text/html" href="https://nijigen.wiki/index.php?title=Module:CallAssert&amp;action=history"/>
	<updated>2026-06-05T02:05:31Z</updated>
	<subtitle>本wiki上该页面的版本历史</subtitle>
	<generator>MediaWiki 1.43.6</generator>
	<entry>
		<id>https://nijigen.wiki/index.php?title=Module:CallAssert&amp;diff=241&amp;oldid=prev</id>
		<title>JasonHK：​导入1个版本</title>
		<link rel="alternate" type="text/html" href="https://nijigen.wiki/index.php?title=Module:CallAssert&amp;diff=241&amp;oldid=prev"/>
		<updated>2025-02-03T14:28:22Z</updated>

		<summary type="html">&lt;p&gt;导入1个版本&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;zh&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;←上一版本&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;2025年2月3日 (一) 14:28的版本&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;4&quot; class=&quot;diff-notice&quot; lang=&quot;zh&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;（没有差异）&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;!-- diff cache key nijigen:diff:1.41:old-240:rev-241 --&gt;
&lt;/table&gt;</summary>
		<author><name>JasonHK</name></author>
	</entry>
	<entry>
		<id>https://nijigen.wiki/index.php?title=Module:CallAssert&amp;diff=240&amp;oldid=prev</id>
		<title>wikipedia:zh&gt;Xiplus-abot：​已更改“Module:CallAssert”的保护设置：​高風險模板：115539引用&lt;!-- 機器人3 --&gt;（[编辑=仅允许管理员]（无限期）[移动=仅允许管理员]（无限期））</title>
		<link rel="alternate" type="text/html" href="https://nijigen.wiki/index.php?title=Module:CallAssert&amp;diff=240&amp;oldid=prev"/>
		<updated>2024-01-08T20:58:29Z</updated>

		<summary type="html">&lt;p&gt;已更改“&lt;a href=&quot;/Module:CallAssert&quot; title=&quot;Module:CallAssert&quot;&gt;Module:CallAssert&lt;/a&gt;”的保护设置：​高風險模板：115539引用&amp;lt;!-- &lt;a href=&quot;/index.php?title=User:Xiplus-abot/task/3&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;User:Xiplus-abot/task/3（页面不存在）&quot;&gt;機器人3&lt;/a&gt; --&amp;gt;（[编辑=仅允许管理员]（无限期）[移动=仅允许管理员]（无限期））&lt;/p&gt;
&lt;p&gt;&lt;b&gt;新页面&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>wikipedia:zh&gt;Xiplus-abot</name></author>
	</entry>
</feed>