syntax highlight

Tuesday 22 November 2016

The best hack you should never use

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.

2 comments:

  1. You also probably want to do: #define class struct

    ReplyDelete
  2. 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!

    ReplyDelete