POV-Ray : Newsgroups : povray.text.scene-files : counting macro calls : Re: counting macro calls Server Time
11 Aug 2022 11:47:27 EDT (-0400)
  Re: counting macro calls  
From: jr
Date: 11 Jun 2022 04:50:00
Message: <web.62a455f172d259902119a36b6cde94f1@news.povray.org>
"jr" <cre### [at] gmailcom> wrote:
> attached is a small include to provide a "total macro calls" count, for
> specified macros.

posting a cleaned-up version, the macros were renamed in camelCase to fit with
other includes.  in case it ("the obvious") needs saying - counters can also be
used outside of macros, for instance per-case in a '#switch', or per-branch in
some '#if ... #end'.

enjoy, jr.

Post a reply to this message

Download 'tmc.inc.txt' (3 KB)

Copyright 2003-2021 Persistence of Vision Raytracer Pty. Ltd.