Hypercookie / PlusOneInC

Can you add one to a number without using anything but #define ?

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

PlusOneInC

Can you add one to a number without using anything but #define ?

Yes you can.

The above code uses nothing but macros to add +1 to any number with 9 or less digits. (It can also decrement)
Some of it is taken from this amazing blog, but most of it is just pain.

Please rescue me!

About

Can you add one to a number without using anything but #define ?


Languages

Language:C 98.7%Language:CMake 1.3%