Skip to content

Commit

Permalink
add REQUIRE macro and an example how to use it in Kernel.h
Browse files Browse the repository at this point in the history
  • Loading branch information
Soeren Sonnenburg committed Jul 4, 2012
1 parent c5f9390 commit af1733e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/shogun/io/SGIO.h
Expand Up @@ -100,6 +100,7 @@ __FILE__ ":" func ": Unstable method! Please report if it seems to " \
#define SG_SDEPRECATED sg_io->deprecated(__FILE__, __LINE__)

#define ASSERT(x) { if (!(x)) SG_SERROR("assertion %s failed in file %s line %d\n",#x, __FILE__, __LINE__);}
#define REQUIRE(x, msg) { if (!(x)) SG_SERROR(msg); }


/** @brief Class SGIO, used to do input output operations throughout shogun.
Expand Down

0 comments on commit af1733e

Please sign in to comment.