Clockfort's Tech Blog

… updated whenever a new project comes along

C: This is Java, Right?

Writing code for this OS class reminds me of why I only write C++/java/ruby nowadays, rather than C.

Here’s a snippet from the top of one of my main files… I do enjoy making C languages that it is not!

// Look, I really like C++; I'll be needing these :-)
#define true (1==1)
#define false (!true)
typedef int bool;

//Debug mode toggle
const bool DEBUG_MODE=true; //See? Already using 'em!