summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--include/astra/Globals.h4
-rw-r--r--src/Globals.cpp4
2 files changed, 4 insertions, 4 deletions
diff --git a/include/astra/Globals.h b/include/astra/Globals.h
index 3eed113..2f0aabb 100644
--- a/include/astra/Globals.h
+++ b/include/astra/Globals.h
@@ -159,11 +159,11 @@ namespace astra {
* abort signal has arrived, or NULL to disable. Intended to be used by the
* matlab/python interfaces to check if Ctrl-C has been pressed.
*/
-void setShouldAbortHook(bool (*pShouldAbortHook)(void));
+_AstraExport void setShouldAbortHook(bool (*pShouldAbortHook)(void));
/** Check if we should abort execution (due to an external signal).
*/
-bool shouldAbort();
+_AstraExport bool shouldAbort();
}
//----------------------------------------------------------------------------------------
diff --git a/src/Globals.cpp b/src/Globals.cpp
index 5f32482..3edd877 100644
--- a/src/Globals.cpp
+++ b/src/Globals.cpp
@@ -43,11 +43,11 @@ _AstraExport bool cudaAvailable() {
static bool (*pShouldAbortHook)(void) = 0;
-void setShouldAbortHook(bool (*_pShouldAbortHook)(void)) {
+_AstraExport void setShouldAbortHook(bool (*_pShouldAbortHook)(void)) {
pShouldAbortHook = _pShouldAbortHook;
}
-bool shouldAbort() {
+_AstraExport bool shouldAbort() {
if (pShouldAbortHook && (*pShouldAbortHook)())
return true;