Logtalk APIs Logo
3.91.1

Contents

  • Libraries
    • arbitrary
    • assertions
    • assignvars
    • base64
    • cbor
    • code_metrics
    • core
    • coroutining
    • csv
    • dates
    • dead_code_scanner
    • debug_messages
    • debugger
    • dependents
    • diagrams
    • dictionaries
    • dif
    • doclet
    • edcg
    • events
    • expand_library_alias_paths
    • expecteds
    • fcube
    • flags
    • format
    • genint
    • gensym
    • git
    • grammars
    • heaps
    • help
    • hierarchies
    • hook_flows
    • hook_objects
      • backend_adapter_hook
      • default_workflow_hook
      • grammar_rules_hook
      • identity_hook
      • object_wrapper_hook
      • object_wrapper_hook(Protocol)
      • object_wrapper_hook(Name,Relations)
      • print_goal_hook
      • prolog_module_hook(Module)
      • suppress_goal_hook
      • write_to_file_hook(File)
      • write_to_file_hook(File,Options)
      • write_to_stream_hook(Stream)
      • write_to_stream_hook(Stream,Options)
    • html
    • ids
    • intervals
    • iso8601
    • issue_creator
    • java
    • json
    • lgtdoc
    • lgtunit
    • library
    • listing
    • logging
    • loops
    • meta
    • meta_compiler
    • metagol
    • mutations
    • nested_dictionaries
    • optionals
    • options
    • os
    • packs
    • pddl_parser
    • ports_profiler
    • queues
    • random
    • reader
    • recorded_database
    • redis
    • sets
    • statistics
    • term_io
    • timeout
    • toychr
    • tsv
    • tutor
    • types
    • ulid
    • union_find
    • uuid
    • verdi_neruda
    • wrapper
    • xml_parser
    • zippers
  • Directories
  • Entities
  • Predicates
  • Core diagram
  • Libraries diagram
  • Tools diagram
  • Ports diagram
  • Contributions diagram
  • Index

External Contents

  • Handbook
  • Logtalk website
  • GitHub repo
Logtalk APIs
  • Libraries
  • print_goal_hook
  • View page source

object

print_goal_hook

Use this object to easily print entity predicate goals before, after, or before and after calling them.

Availability:
logtalk_load(hook_objects(loader))
Author: Paulo Moura
Version: 1:0:0
Date: 2020-03-14
Compilation flags:
static, context_switching_calls
Implements:
public expanding
Remarks:
  • Usage: Mark a goal to be printed by prefixing it with an operator. Printing uses a comment message.

  • To print goal before calling it: - Goal.

  • To print goal after calling it: + Goal.

  • To print goal before and after calling it: * Goal.

  • Operators: This hook object uses the standard - and + prefix operators and also defines a global * prefix operator with the same type and priority.

Inherited public predicates:
 goal_expansion/2  term_expansion/2
  • Public predicates

  • Protected predicates

  • Private predicates

  • Operators

Public predicates

(no local declarations; see entity ancestors if any)

Protected predicates

(no local declarations; see entity ancestors if any)

Private predicates

(no local declarations; see entity ancestors if any)

Operators

(none)

See also

backend_adapter_hook, default_workflow_hook, grammar_rules_hook, identity_hook, prolog_module_hook(Module), object_wrapper_hook, write_to_stream_hook(Stream,Options), write_to_stream_hook(Stream), suppress_goal_hook

Previous Next

© Copyright 1998-2025, Paulo Moura.

Built with Sphinx using a theme provided by Read the Docs.