root/trunk/examples/debug_hooks/hooks.lgt

Revision 4611, 0.6 KB (checked in by pmoura, 6 weeks ago)

Improved documentation of the "expansion" example.

  • Property svn:mime-type set to text/x-logtalk
  • Property svn:eol-style set to native
Line 
1
2:- object(hook_debug,
3    implements(expanding)).     % built-in protocol for term and goal expansion methods
4
5    :- info([
6        version is 1.0,
7        author is 'Paulo Moura',
8        date is 2008/4/9,
9        comment is 'Compiler hook support for activating debug statements.']).
10
11    goal_expansion(debug(Goal), Goal).
12
13:- end_object.
14
15
16
17:- object(hook_production,
18    implements(expanding)).     % built-in protocol for term and goal expansion methods
19
20    :- info([
21        version is 1.0,
22        author is 'Paulo Moura',
23        date is 2008/4/9,
24        comment is 'Compiler hook support for discarding debug statements.']).
25
26    goal_expansion(debug(_), true).
27
28:- end_object.
Note: See TracBrowser for help on using the browser.