aboutsummaryrefslogtreecommitdiff
path: root/src/NaNCheck.h
diff options
context:
space:
mode:
authoreschnett <eschnett@ff385933-4943-42dc-877b-ffc776028de6>2012-07-09 00:19:07 +0000
committereschnett <eschnett@ff385933-4943-42dc-877b-ffc776028de6>2012-07-09 00:19:07 +0000
commitfb71c8e935025d61787b4fcaf8f62385b0f305b3 (patch)
tree3e92121df38ee8214d9ecd530024c8d197b81e22 /src/NaNCheck.h
parent67fa286685ac3310a356efccfe5628306e51d4bc (diff)
Use namespace instead of static declarations
Use a namespace instead of static declarations, so that name resolution in the template works. git-svn-id: http://svn.cactuscode.org/arrangements/CactusUtils/NaNChecker/trunk@105 ff385933-4943-42dc-877b-ffc776028de6
Diffstat (limited to 'src/NaNCheck.h')
-rw-r--r--src/NaNCheck.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/NaNCheck.h b/src/NaNCheck.h
index bdf6649..134f1e5 100644
--- a/src/NaNCheck.h
+++ b/src/NaNCheck.h
@@ -13,6 +13,7 @@
#define NANCHECKER_NANCHECK_H 1
#ifdef __cplusplus
+namespace NaNChecker {
extern "C"
{
#endif
@@ -28,6 +29,7 @@ int NaNChecker_SetVarsToNaN (const cGH *GH,
#ifdef __cplusplus
}
+} // end namespace NaNChecker
#endif
#endif /* NANCHECKER_NANCHECK_H */