Action:
|
Gets a count of laws in use.
|
|
Filename:
|
kern/kern_scm/law_scm.cxx
|
|
Syntax:
|
(law:count)
|
|
Arg Types:
|
None
|
|
Returns:
|
boolean
|
|
Description:
|
A static list holding each of one law class is maintained. Therefore, the law count number will never be zero. This is used for testing of memory leaks in laws. This command should be used with the
collect Scheme extension to find memory leaks.
|
|
Example:
|
; law:count
|
|
; Create a law.
|
|
(define law1 (law "x+x^2-cos(x)"))
|
|
;; law1
|
|
; Check to see how many laws are in use.
|
|
(law:count)
|
|
;; 121
|
|
; This return depends on how many laws were defined
|
|
; and the number of laws maintained in the law static
|
|
; list.
|