モジュール:grc-decl/shared

出典: フリー多機能辞典『ウィクショナリー日本語版(Wiktionary)』
ナビゲーションに移動 検索に移動

このモジュールについての説明文ページを モジュール:grc-decl/shared/doc に作成できます

local export = {}

function export.quote(text)
	return "“" .. text .. "”"
end

local function check_track_arg(argI, arg)
	require('libraryUtil').checkType("track", argI, arg, "string")
end

function export.track(template, code)
	check_track_arg(1, template)
	if code then
		check_track_arg(2, code)
		require("モジュール:debug").track(template .. "/" .. code)
	else
		return function(code)
			check_track_arg(1, code)
			require("モジュール:debug").track(template .. "/" .. code)
		end
	end
end

return export