Skip to content

Instantly share code, notes, and snippets.

@tychoish
Created May 2, 2013 14:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tychoish/5502636 to your computer and use it in GitHub Desktop.
Save tychoish/5502636 to your computer and use it in GitHub Desktop.
BSONObj isWindows(const BSONObj& a, void* data) {
uassert( 13006, "isWindows accepts no arguments", a.nFields() == 0 );
#ifdef _WIN32
return BSON( "" << true );
#else
return BSON( "" << false );
#endif
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment