A.26.3 Predicates
All Application Manual Name SummaryHelp

  • Documentation
    • Reference manual
      • The SWI-Prolog library
        • library(macros): Macro expansion
          • Predicates
            • include_macros/3
            • expand_macros/5
            • macro_position/1
    • Packages
Availability::- use_module(library(macros)).(can be autoloaded)
Source[semidet]include_macros(+M, +Macro, -Expanded)
Include macros from another module. This predicate is a helper for #import(File). It calls’$macro’/2 in M, but fails silently in case Macro is not defined in M as it may be defined in another imported macro file or further down in the current file.