From 113d5ffa088f1a66dc25350e4653cef934fcd8a2 Mon Sep 17 00:00:00 2001 From: Tad Hardesty Date: Thu, 7 Mar 2019 01:58:30 -0800 Subject: [PATCH] Mark a few procs as varargs explicitly (#42986) --- code/__HELPERS/files.dm | 2 +- code/__HELPERS/unsorted.dm | 2 +- code/modules/atmospherics/gasmixtures/gas_mixture.dm | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/code/__HELPERS/files.dm b/code/__HELPERS/files.dm index 7f0b5a3c071..5d6106cf918 100644 --- a/code/__HELPERS/files.dm +++ b/code/__HELPERS/files.dm @@ -1,5 +1,5 @@ //Sends resource files to client cache -/client/proc/getFiles() +/client/proc/getFiles(...) for(var/file in args) src << browse_rsc(file) diff --git a/code/__HELPERS/unsorted.dm b/code/__HELPERS/unsorted.dm index 4b371819e1f..309673b2776 100644 --- a/code/__HELPERS/unsorted.dm +++ b/code/__HELPERS/unsorted.dm @@ -1319,7 +1319,7 @@ GLOBAL_DATUM_INIT(dview_mob, /mob/dview, new) #define UNTIL(X) while(!(X)) stoplag() -/proc/pass() +/proc/pass(...) return /proc/get_mob_or_brainmob(occupant) diff --git a/code/modules/atmospherics/gasmixtures/gas_mixture.dm b/code/modules/atmospherics/gasmixtures/gas_mixture.dm index 956400b679d..ebbbca809ca 100644 --- a/code/modules/atmospherics/gasmixtures/gas_mixture.dm +++ b/code/modules/atmospherics/gasmixtures/gas_mixture.dm @@ -46,7 +46,7 @@ GLOBAL_LIST_INIT(gaslist_cache, init_gaslist_cache()) ASSERT_GAS(gas_id, src) //assert_gases(args) - shorthand for calling ASSERT_GAS() once for each gas type. -/datum/gas_mixture/proc/assert_gases() +/datum/gas_mixture/proc/assert_gases(...) for(var/id in args) ASSERT_GAS(id, src) @@ -57,7 +57,7 @@ GLOBAL_LIST_INIT(gaslist_cache, init_gaslist_cache()) ADD_GAS(gas_id, gases) //add_gases(args) - shorthand for calling add_gas() once for each gas_type. -/datum/gas_mixture/proc/add_gases() +/datum/gas_mixture/proc/add_gases(...) var/cached_gases = gases for(var/id in args) ADD_GAS(id, cached_gases)