<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://the.satanic.wiki/index.php?action=history&amp;feed=atom&amp;title=Module%3ACheckTypeMulti</id>
	<title>Module:CheckTypeMulti - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://the.satanic.wiki/index.php?action=history&amp;feed=atom&amp;title=Module%3ACheckTypeMulti"/>
	<link rel="alternate" type="text/html" href="https://the.satanic.wiki/index.php?title=Module:CheckTypeMulti&amp;action=history"/>
	<updated>2026-04-20T02:46:09Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.0</generator>
	<entry>
		<id>https://the.satanic.wiki/index.php?title=Module:CheckTypeMulti&amp;diff=11033&amp;oldid=prev</id>
		<title>WikiGOD: Created page with &quot;-- &lt;nowiki&gt; -------------------------------------------------------------------------------- -- Like libraryUtil.checkType, but accepts multiple types. -- -- @source &lt;http://g...&quot;</title>
		<link rel="alternate" type="text/html" href="https://the.satanic.wiki/index.php?title=Module:CheckTypeMulti&amp;diff=11033&amp;oldid=prev"/>
		<updated>2021-05-02T04:36:18Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;-- &amp;lt;nowiki&amp;gt; -------------------------------------------------------------------------------- -- Like libraryUtil.checkType, but accepts multiple types. -- -- @source &amp;lt;http://g...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;-- &amp;lt;nowiki&amp;gt;&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
-- Like libraryUtil.checkType, but accepts multiple types.&lt;br /&gt;
--&lt;br /&gt;
-- @source &amp;lt;http://git.io/vtPKB&amp;gt;&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
return function ( name, argIdx, arg, expectTypes )&lt;br /&gt;
	local argType = type( arg )&lt;br /&gt;
	for _, expectType in ipairs( expectTypes ) do&lt;br /&gt;
		if argType == expectType then&lt;br /&gt;
			return&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
	local n = #expectTypes&lt;br /&gt;
	local typeList&lt;br /&gt;
	if n &amp;gt; 1 then&lt;br /&gt;
		typeList = table.concat( expectTypes, &amp;#039;, &amp;#039;, 1, n - 1 ) .. &amp;#039; or &amp;#039; .. expectTypes[n]&lt;br /&gt;
	else&lt;br /&gt;
		typeList = expectTypes[1]&lt;br /&gt;
	end&lt;br /&gt;
	local msg = string.format( &amp;quot;bad argument #%d to &amp;#039;%s&amp;#039; (%s expected, got %s)&amp;quot;,&lt;br /&gt;
		argIdx,&lt;br /&gt;
		name,&lt;br /&gt;
		typeList,&lt;br /&gt;
		type( arg )&lt;br /&gt;
	)&lt;br /&gt;
	error( msg, 3 )&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
-- &amp;lt;/nowiki&amp;gt;&lt;br /&gt;
-- (Add categories here.)&lt;/div&gt;</summary>
		<author><name>WikiGOD</name></author>
	</entry>
</feed>