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
#include <stdexcept> | |
#include <iostream> | |
void maybe_throw(int should_throw) { | |
if (should_throw) | |
throw std::domain_error("exception in C++: dummy"); | |
} | |
extern "C" int some_fn(int should_throw) { | |
try { |
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
/** | |
* Demonstration of `scalar_type_t`, `base_type_t`, and `value_type_t`, for | |
* examples where they do the same thing and examples where they differ. | |
* | |
* Place in math repo directory and compile with: | |
make -f make/standalone test_types | |
*/ | |
#include <stan/math/prim.hpp> | |
#include <stan/math/prim/fun/typedefs.hpp> |
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
<# | |
.Synopsis | |
Opens explorer in the current working directory | |
#> | |
Function Start-FileExplorer { | |
Start-Process explorer.exe . | |
} | |
<# | |
.Synopsis |