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
#include <iostream> | |
unsigned int stack_zero; | |
unsigned int stack_last; | |
#define GETREG(reg, out) \ | |
asm("movl %%" #reg ", %0"\ | |
: "=r" (out)\ | |
: \ | |
) |
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 EVENT_H | |
#define EVENT_H | |
#include <vector> | |
#include <functional> | |
namespace jay { | |
//event class. Supports adding handlers and invoking them | |
template<class ... types> | |
class Event { |