DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 

(guile.info.gz) Writing your own snarfing macros

Info Catalog (guile.info.gz) Macros guile-snarf recognizes (guile.info.gz) Init Snarfing with guile-snarf
 
 13.1.1.3 Writing your own snarfing macros
 .........................................
 
 When you want to use the general snarfing machanism, but none of the
 provided macros fits your need, you can use the macro `SCM_SNARF_INIT'.
 
    For example, the `SCM_SYMBOL' macro can be defined like this:
 
      #define SCM_SYMBOL(c_name, scheme_name) \
      static SCM c_name \
      SCM_SNARF_INIT(c_name = scm_permanent_object (scm_str2symbol (scheme_name)))
 
  -- Macro: SCM_SNARF_INIT (code)
      When processed normally, `SCM_SNARF_INIT' expands to nothing; when
      processed by the snarfer, it causes CODE to be included in the
      initialization action file, followed by a semicolon.
 
Info Catalog (guile.info.gz) Macros guile-snarf recognizes (guile.info.gz) Init Snarfing with guile-snarf
automatically generated byinfo2html