Skip to content

Instantly share code, notes, and snippets.

@Azhng
Created April 22, 2016 19:54
Show Gist options
  • Save Azhng/5e823088aa74c4f440a48ada85812cbe to your computer and use it in GitHub Desktop.
Save Azhng/5e823088aa74c4f440a48ada85812cbe to your computer and use it in GitHub Desktop.
#include "IPluggable.hpp"
#include<cstdio>
#define quote(x) #x
using namespace std;
int main(int argc, char **argv) {
cout << "Why not working" << endl;
Engine e;
Engine e2;
e.func1(e2)
.func2()
.func3()
.on("ahah", [](Engine& e) {
cout << "handling" << endl;
})
.beNotified("ahah")
.func2();
int fooo;
cin >> fooo;
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment