The best hack you should never use

Post by Nico Brailovsky @ 2016-11-22 | Permalink | 2 comments | Leave a comment

Please don't do this. But if you do: leave a comment here!

#define private public
#include "something"
#define private private

Found in some random project.


In reply to this post, Tanzinul Islam commented @ 2016-11-28T06:53:49.000+01:00:

You also probably want to do: #define class struct

Original published here.


In reply to this post, nico commented @ 2016-11-28T13:57:34.000+01:00:

Please don't. That's horrible :) But, yes, you're correct: that'd be necessary to make this awful thing work. Thanks for the addition!

Original published here.