gnucap-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gnucap-devel] io_trace


From: Felix Salfelder
Subject: [Gnucap-devel] io_trace
Date: Fri, 5 Aug 2016 20:58:53 +0200
User-agent: Mutt/1.5.21 (2010-09-15)

hi Al

now theres gnucap-conf. starting to build things...

i have become used to a slightly different trace header (in -uf). not
all changes make sense, but i think these (see traces branch on sv).

- catch stale traces. by defining trace* to ignore the arguments, a lot
  of cruft will accumulate and make it harder to switch them back on.
  also, unused variable warnings show up for variables that are used for
  traces. my "solution" is to define inactive traces as

  #define trace(x) (1)?(void)(0):(void)(x),

  instead of nothing. this way, the compiler checks x, without actually
  doing anything. maybe there is a simpler way, this one does not look
  dangerous...

- use ostreams instead of printf. i have used this to debug non-numeric
  objects, or matrices/vectors. this seems fully backwars compatible and
  harmless to me. but useful.

thanks
felix



reply via email to

[Prev in Thread] Current Thread [Next in Thread]