Skip to content
This repository has been archived by the owner on Jun 9, 2022. It is now read-only.

Commit

Permalink
Macro to safely call system functions
Browse files Browse the repository at this point in the history
git-svn-id: svn+ssh://svn.code.sf.net/p/cmusphinx/code/trunk/sphinxbase@12040 94700074-3cef-4d97-a70e-9c8c206c02f5
  • Loading branch information
mbait committed Nov 10, 2013
1 parent 6b52f60 commit ccb185f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions include/sphinxbase/err.h
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,8 @@ extern "C" {
}
#endif

#define E_SYSCALL(stmt, ...) if (stmt) E_FATAL_SYSTEM(__VA_ARGS__);

#define FILELINE __FILE__ , __LINE__

/**
Expand Down

0 comments on commit ccb185f

Please sign in to comment.