-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Russell Harmon
committed
Nov 4, 2013
1 parent
4919e84
commit bcd97ff
Showing
29 changed files
with
689 additions
and
107 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
C++ variable initialization may throw | ||
Introspection of opaque types don't error |
Submodule html
updated
50 files
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,36 +1,40 @@ | ||
#define gxx_call(body, error) ({ \ | ||
bool ret = true; \ | ||
try { \ | ||
body; \ | ||
} catch( Ice::Exception &ex ) { \ | ||
/* If we throw here, meh. */ \ | ||
std::ostringstream ss; \ | ||
ss << ex; \ | ||
g_set_error( \ | ||
error, \ | ||
RUMINATE_ERROR, \ | ||
RUMINATE_ERROR_ICE, \ | ||
"%s", \ | ||
ss.str().c_str() \ | ||
); \ | ||
ret = false; \ | ||
} catch( std::exception &ex ) { \ | ||
g_set_error( \ | ||
error, \ | ||
RUMINATE_ERROR, \ | ||
RUMINATE_ERROR_STDLIB, \ | ||
"%s", \ | ||
ex.what() \ | ||
); \ | ||
ret = false; \ | ||
} catch(...) { \ | ||
g_set_error_literal( \ | ||
error, \ | ||
RUMINATE_ERROR, \ | ||
RUMINATE_ERROR_UNSPEC, \ | ||
"Unspecified error" \ | ||
); \ | ||
ret = false; \ | ||
} \ | ||
ret; \ | ||
}) | ||
#define gxx_call(body, error) \ | ||
_Pragma("clang diagnostic push") \ | ||
_Pragma("clang diagnostic ignored \"-Wgnu-statement-expression\"") \ | ||
({ \ | ||
bool ret = true; \ | ||
try { \ | ||
body; \ | ||
} catch( Ice::Exception &ex ) { \ | ||
/* If we throw here, meh. */ \ | ||
std::ostringstream ss; \ | ||
ss << ex; \ | ||
g_set_error( \ | ||
error, \ | ||
RUMINATE_ERROR, \ | ||
RUMINATE_ERROR_ICE, \ | ||
"%s", \ | ||
ss.str().c_str() \ | ||
); \ | ||
ret = false; \ | ||
} catch( std::exception &ex ) { \ | ||
g_set_error( \ | ||
error, \ | ||
RUMINATE_ERROR, \ | ||
RUMINATE_ERROR_STDLIB, \ | ||
"%s", \ | ||
ex.what() \ | ||
); \ | ||
ret = false; \ | ||
} catch(...) { \ | ||
g_set_error_literal( \ | ||
error, \ | ||
RUMINATE_ERROR, \ | ||
RUMINATE_ERROR_UNSPEC, \ | ||
"Unspecified error" \ | ||
); \ | ||
ret = false; \ | ||
} \ | ||
ret; \ | ||
}) \ | ||
_Pragma("clang diagnostic pop") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.