Browse Source

add WG_COND_* constants to wgdb class

master
Brett Langdon 12 years ago
parent
commit
263c64c20c
1 changed files with 7 additions and 0 deletions
  1. +7
    -0
      src/wgdb.cc

+ 7
- 0
src/wgdb.cc View File

@ -416,6 +416,13 @@ void WgDB::Init(Handle<Object> target){
tpl->PrototypeTemplate()->Set(String::NewSymbol("import"), tpl->PrototypeTemplate()->Set(String::NewSymbol("import"),
FunctionTemplate::New(WgDB::Import)->GetFunction()); FunctionTemplate::New(WgDB::Import)->GetFunction());
tpl->Set(String::NewSymbol("EQUAL"), Int32::New(int(WG_COND_EQUAL)));
tpl->Set(String::NewSymbol("NOT_EQUAL"), Int32::New(int(WG_COND_NOT_EQUAL)));
tpl->Set(String::NewSymbol("LESSTHAN"), Int32::New(int(WG_COND_LESSTHAN)));
tpl->Set(String::NewSymbol("GREATER"), Int32::New(int(WG_COND_GREATER)));
tpl->Set(String::NewSymbol("LTEQUAL"), Int32::New(int(WG_COND_LTEQUAL)));
tpl->Set(String::NewSymbol("GTEQUAL"), Int32::New(int(WG_COND_GTEQUAL)));
Persistent<Function> constructor = Persistent<Function>::New(tpl->GetFunction()); Persistent<Function> constructor = Persistent<Function>::New(tpl->GetFunction());
target->Set(String::NewSymbol("wgdb"), constructor); target->Set(String::NewSymbol("wgdb"), constructor);
} }


Loading…
Cancel
Save