summaryrefslogtreecommitdiff
path: root/spec/inputs/macro-todo.yue
blob: 8477e5a84dab1ed93603e3007e43b8b6e6c1ab0f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
export macro todoInner = (module, line, msg)->
	print "TODO#{msg and ': ' .. msg or ''} in file #{module}, at line #{line}"
	{
		code: "-- TODO#{msg and ': ' .. msg or ''}"
		type: "lua"
	}

export macro todo = (msg)->
	if msg
		"$todoInner $MODULE, $LINE, #{msg}"
	else
		"$todoInner $MODULE, $LINE"