This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// http://www.rohitab.com/discuss/topic/39611-malware-related-compile-time-hacks-with-c11/ | |
#include <stdio.h> | |
#include <stdint.h> | |
//-------------------------------------------------------------// | |
// "Malware related compile-time hacks with C++11" by LeFF // | |
// You can use this code however you like, I just don't really // | |
// give a shit, but if you feel some respect for me, please // | |
// don't cut off this comment when copy-pasting... ;-) // |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#ifndef SSVU_FASTFUNC | |
#define SSVU_FASTFUNC | |
#include <cstring> | |
#include <type_traits> | |
#include <cassert> | |
#include <cstddef> | |
#include <memory> | |
#include <new> | |
#include <utility> |