POV-Ray : Newsgroups : povray.text.scene-files : counting macro calls : Re: counting macro calls Server Time
5 Jul 2022 04:55:37 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


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

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