[haiku-development] Re: Regarding GSoC application draft

  • From: Dario Casalinuovo <b.vitruvio@xxxxxxxxx>
  • To: haiku-development@xxxxxxxxxxxxx
  • Date: Sat, 30 Mar 2019 15:21:43 +0100

Hi,

On Sat, Mar 30, 2019 at 3:08 PM MML <yatendra1999luffy@xxxxxxxxx> wrote:

I have a basic understanding of the ext4 filesystem but can't seem to
understand what this means. Is this similar to python trace in any way?
//#define TRACE_EXT2

#ifdef TRACE_EXT2
#   define TRACE(x...) dprintf("\33[34mext2:\33[0m " x)
#else
#   define TRACE(x...) ;
#endif
#define ERROR(x...) dprintf("\33[34mext2:\33[0m " x)


Yes, this is a debug trace which wrap a dprintf. When TRACE_EXT2 is not
defined, it just fallback and the preprocessor replace this string with
"nothing". This is done to easily disable/enable debug printfs which can be
quite annoying. This is something quite common, so be used to that :)

-- 
Saluti,
Dario

Other related posts: