acs::register_icanuse (public)
acs::register_icanuse feature condition
Defined in packages/acs-tcl/tcl/00-icanuse-procs.tcl
Registry function for acs::caniuse.
- Parameters:
- feature
- name for a feature, can contain blanks
- condition
- expression to determine availability
- Partial Call Graph (max 5 caller/called nodes):
- Testcases:
- acs_icanuse
Source code: set success 0 try { expr $condition } on ok {result} { set success $result } on error {errorMsg} { # just use the default ns_log warning "registry for caniuse $feature -> $errorMsg" } if {$success} { set ::acs::caniuse($feature) 1 } ns_log notice "... I can use $feature -> $success"XQL Not present: Generic, PostgreSQL, Oracle