Add source.get_debug_name API

This commit is contained in:
hrsh7th
2021-08-16 12:12:55 +09:00
parent d314313060
commit 75b368abb8
3 changed files with 19 additions and 8 deletions

View File

@@ -251,6 +251,11 @@ source.new = function()
return self
end
---Return the source name for some information.
source.get_debug_name = function()
return 'example'
end
---Return the source is available or not.
---@return boolean
function source:is_available()