C++ SQLite Yet Another Api (YAPI) Part 3 Easy UDF’s

After reading the second installment about what I announced as “simple” C++ API , you have been thinking it is a bit overwhelming and certainly not that simple. And then comes: C++ SQLite Yet Another Api (YAPI) Part 3 Easy UDF’s.

Easy UDF’s

Continue reading “C++ SQLite Yet Another Api (YAPI) Part 3 Easy UDF’s”

C++ How to create unique types, from the all stack template. Simple matrix

Consider this:

Continue reading “C++ How to create unique types, from the all stack template. Simple matrix”

C++ Macros with variable number of arguments

C++ Macros with a variable number of arguments, or even worse sounding “Variadic Macro’s“.

Why would anybody need this? Like C++ is not “hard enough” already, one might exclaim? Well. standard C/C++ is not hard.  But to learn anything properly, good examples are priceless. Here is one good example.

(Working code example)

Continue reading “C++ Macros with variable number of arguments”

C++ How to make unwanted code, legal but non-existent

Mask of Happines

What is “non-existent”?  That is: it is compiled into zero bytes. It is non-existent in the resulting executable. So, in C++, how to make unwanted code legal but non-existent?

Ok, and, you might want it back sometime in the near future?  Well, that is simple, say you, there is this well known, mature and universally used macro that does make unused code “get out of the way”

// de-facto standard
#define UNUSED(x) (void)x

If this macro makes you ask questions please read on, otherwise, leave in peace. Continue reading “C++ How to make unwanted code, legal but non-existent”