Skip to content
Chris Petersen edited this page Oct 16, 2014 · 4 revisions

function-exists? tests if a function named str exists.

Parameter Description
str String to test for existance

Example

Example 1: Check if a function "s5-init", which is declared in a different module, exists to add a new monitor driver to an existing list of supported drivers.

(if (function-exists? "s5-init") 
  (eval '(monitor-add-driver (list "S/5" s5-init s5-run s5-close))))

Clone this wiki locally