20,741
edits
m (→Integration) |
|||
Line 34: | Line 34: | ||
== Objective == | == Objective == | ||
== Implementation == | |||
We will be wrapping/overriding the problematic APIs at the global level to provide functions that internally support callback/registration tracking, and which can automatically detect improper use of these APIs: | |||
<syntaxhighlight lang="nasal"> | |||
var setlistener = func() { | |||
}; | |||
var settimer = func() { | |||
}; | |||
</syntaxhighlight | |||
== Integration == | == Integration == | ||
The corresponding APIs should be either loaded globally via $FG_ROOT/Nasal or explicitly loaded via the -set.xml file: | |||
<syntaxhighlight lang="xml"> | |||
</syntaxhighlight | |||
== Code == | == Code == |