summaryrefslogtreecommitdiff
path: root/xmake/plugins/check/checkers/api/target/exceptions.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2023-02-20 22:47:16 +0800
committerruki <[email protected]>2023-02-20 22:47:16 +0800
commit2e04812cae7e38d9b097b40cce90b34ec6fb8fca (patch)
treefc25c1fb5259908a3a6d4c6e97ca22a2361cb19a /xmake/plugins/check/checkers/api/target/exceptions.lua
parent1ceae4d5e4b2786c395a705f7c89601e6ef8aedc (diff)
improve target checkers
Diffstat (limited to 'xmake/plugins/check/checkers/api/target/exceptions.lua')
-rw-r--r--xmake/plugins/check/checkers/api/target/exceptions.lua5
1 files changed, 3 insertions, 2 deletions
diff --git a/xmake/plugins/check/checkers/api/target/exceptions.lua b/xmake/plugins/check/checkers/api/target/exceptions.lua
index 551595e7b..e9570a894 100644
--- a/xmake/plugins/check/checkers/api/target/exceptions.lua
+++ b/xmake/plugins/check/checkers/api/target/exceptions.lua
@@ -21,6 +21,7 @@
-- imports
import(".api_checker")
-function main()
- api_checker.check_targets("exceptions", {values = {"none", "cxx", "objc", "no-cxx", "no-objc"}})
+function main(opt)
+ opt = opt or {}
+ api_checker.check_targets("exceptions", table.join(opt, {values = {"none", "cxx", "objc", "no-cxx", "no-objc"}}))
end