2024-07-12 15:59:26 +00:00
|
|
|
|
|
2024-07-16 14:45:37 +00:00
|
|
|
|
define mb-make-check-variable
|
2024-07-16 15:36:22 +00:00
|
|
|
|
$(MB_ᕽᕽᕽ )$(if $($(1)),,$(error $(1): $(MB_I18N_MAKE_CHECK_VARIABLE)))
|
2024-07-12 15:59:26 +00:00
|
|
|
|
endef
|
2024-07-16 17:32:08 +00:00
|
|
|
|
$(call mb-make-call,mb-doc-function-deep,mb-make-check-variable,Checks that a variable is not empty.,<variable>)
|
2024-07-12 15:59:26 +00:00
|
|
|
|
|
|
|
|
|
|
2024-07-16 14:45:37 +00:00
|
|
|
|
define mb-make-check-value-valid
|
2024-07-16 15:36:22 +00:00
|
|
|
|
$(MB_ᕽᕽᕽ )$(if $(filter $(2),$(3)),,$(error $(1): $(MB_I18N_MAKE_CHECK_VALUE_VALID) $(2) $(3)))
|
2024-07-12 15:59:26 +00:00
|
|
|
|
endef
|
2024-07-16 17:32:08 +00:00
|
|
|
|
$(call mb-make-call,mb-doc-function-deep,mb-make-check-value-valid,Checks that a value is valid.,<value> <valid-values>)
|
2024-07-12 15:59:26 +00:00
|
|
|
|
|
|
|
|
|
|
2024-07-16 14:45:37 +00:00
|
|
|
|
define mb-make-check-arg1
|
2024-07-12 15:59:26 +00:00
|
|
|
|
$(MB_ᕽᕽᕽ )$(if $(2),,$(error $(1): $(MB_I18N_MAKE_CHECK_ARG1)))
|
|
|
|
|
endef
|
2024-07-16 17:32:08 +00:00
|
|
|
|
$(call mb-make-call,mb-doc-function-deep,mb-make-check-arg1,Checks that a function has a given argument.,<function> <arg1>)
|
2024-07-12 15:59:26 +00:00
|
|
|
|
|
|
|
|
|
|
2024-07-16 14:45:37 +00:00
|
|
|
|
define mb-make-check-arg2
|
2024-07-12 15:59:26 +00:00
|
|
|
|
$(MB_ᕽᕽᕽ )$(if $(2),,$(error $(1): $(MB_I18N_MAKE_CHECK_ARG1))) \
|
|
|
|
|
$(MB_ᕽᕽᕽ )$(if $(3),,$(error $(1): $(MB_I18N_MAKE_CHECK_ARG2)))
|
|
|
|
|
endef
|
2024-07-16 17:32:08 +00:00
|
|
|
|
$(call mb-make-call,mb-doc-function-deep,mb-make-check-arg2,Checks that a function has the given arguments.,<function> <arg1> <arg2>)
|
2024-07-12 15:59:26 +00:00
|
|
|
|
|
|
|
|
|
|
2024-07-16 14:45:37 +00:00
|
|
|
|
define mb-make-check-arg3
|
2024-07-12 15:59:26 +00:00
|
|
|
|
$(MB_ᕽᕽᕽ )$(if $(2),,$(error $(1): $(MB_I18N_MAKE_CHECK_ARG1))) \
|
|
|
|
|
$(MB_ᕽᕽᕽ )$(if $(3),,$(error $(1): $(MB_I18N_MAKE_CHECK_ARG2))) \
|
|
|
|
|
$(MB_ᕽᕽᕽ )$(if $(4),,$(error $(1): $(MB_I18N_MAKE_CHECK_ARG3)))
|
|
|
|
|
endef
|
2024-07-16 17:32:08 +00:00
|
|
|
|
$(call mb-make-call,mb-doc-function-deep,mb-make-check-arg3,Checks that a function has the given arguments.,<function> <arg1> <arg2> <arg3>)
|
2024-07-12 15:59:26 +00:00
|
|
|
|
|
|
|
|
|
|
2024-07-16 14:45:37 +00:00
|
|
|
|
define mb-make-check-arg4
|
2024-07-12 15:59:26 +00:00
|
|
|
|
$(MB_ᕽᕽᕽ )$(if $(2),,$(error $(1): $(MB_I18N_MAKE_CHECK_ARG1))) \
|
|
|
|
|
$(MB_ᕽᕽᕽ )$(if $(3),,$(error $(1): $(MB_I18N_MAKE_CHECK_ARG2))) \
|
|
|
|
|
$(MB_ᕽᕽᕽ )$(if $(4),,$(error $(1): $(MB_I18N_MAKE_CHECK_ARG3))) \
|
|
|
|
|
$(MB_ᕽᕽᕽ )$(if $(5),,$(error $(1): $(MB_I18N_MAKE_CHECK_ARG4)))
|
|
|
|
|
endef
|
2024-07-16 17:32:08 +00:00
|
|
|
|
$(call mb-make-call,mb-doc-function-deep,mb-make-check-arg4,Checks that a function has the given arguments.,<function> <arg1> <arg2> <arg3> <arg4>)
|
2024-07-12 15:59:26 +00:00
|
|
|
|
|
|
|
|
|
|
2024-07-16 14:45:37 +00:00
|
|
|
|
define mb-make-check-arg5
|
2024-07-12 15:59:26 +00:00
|
|
|
|
$(MB_ᕽᕽᕽ )$(if $(2),,$(error $(1): $(MB_I18N_MAKE_CHECK_ARG1))) \
|
|
|
|
|
$(MB_ᕽᕽᕽ )$(if $(3),,$(error $(1): $(MB_I18N_MAKE_CHECK_ARG2))) \
|
|
|
|
|
$(MB_ᕽᕽᕽ )$(if $(4),,$(error $(1): $(MB_I18N_MAKE_CHECK_ARG3))) \
|
|
|
|
|
$(MB_ᕽᕽᕽ )$(if $(5),,$(error $(1): $(MB_I18N_MAKE_CHECK_ARG4))) \
|
|
|
|
|
$(MB_ᕽᕽᕽ )$(if $(6),,$(error $(1): $(MB_I18N_MAKE_CHECK_ARG5)))
|
|
|
|
|
endef
|
2024-07-16 17:32:08 +00:00
|
|
|
|
$(call mb-make-call,mb-doc-function-deep,mb-make-check-arg5,Checks that a function has the given arguments.,<function> <arg1> <arg2> <arg3> <arg4> <arg5>)
|
2024-07-12 15:59:26 +00:00
|
|
|
|
|