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):
%3 test_acs_icanuse acs_icanuse (test acs-tcl) acs::register_icanuse acs::register_icanuse test_acs_icanuse->acs::register_icanuse

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
[ hide source ] | [ make this the default ]
Show another procedure: