← Back to team overview

marionnet-dev team mailing list archive

[Branch ~marionnet-drivers/ocamlbricks/trunk] Rev 287: Defined a compilation mode useful for testing or generating documentation. Actually, when "make d...

 

------------------------------------------------------------
revno: 287
committer: Jean-Vincent Loddo <loddo@xxxxxxxxxxxxxxxxxxxx>
branch nick: ocamlbricks
timestamp: Tue 2012-01-03 22:38:53 +0100
message:
  Defined a compilation mode useful for testing or generating documentation. Actually, when "make doc" or "make test" are called, the string "-DDOCUMENTATION_OR_DEBUGGING" is appended to the Makefile's variable PP_OPTION. In this way, in a source file we can define conditional code (typically examples) useful for both purposes:
  
  IFDEF DOCUMENTATION_OR_DEBUGGING THEN
  module Examples = struct
  ...
  end (* module Examples *)
  ENDIF
  
  and in a signature:
  
  IFDEF DOCUMENTATION_OR_DEBUGGING THEN
  module Examples : sig
  ...
  end
  ENDIF
modified:
  Makefile.d/doc.sh
  Makefile.local
  STRUCTURES/network.ml
  STRUCTURES/network.mli


--
lp:ocamlbricks
https://code.launchpad.net/~marionnet-drivers/ocamlbricks/trunk

Your team marionnet-dev is subscribed to branch lp:ocamlbricks.
To unsubscribe from this branch go to https://code.launchpad.net/~marionnet-drivers/ocamlbricks/trunk/+edit-subscription