fix compile error on mingw32, add lua events for channels

This commit is contained in:
Eduardo Bart
2011-11-18 22:12:17 -02:00
parent 5c654f685c
commit ce681480ea
9 changed files with 274 additions and 63 deletions

View File

@@ -44,8 +44,8 @@ typedef std::function<bool()> BooleanCallback;
// boolean with default value initializer
template<bool def>
struct boolean {
boolean() : v(def) { }
struct Boolean {
Boolean() : v(def) { }
operator bool &() { return v; }
operator bool const &() const { return v; }
bool& operator=(const bool& o) { v = o; return v; }