1 #ifndef SimTK_SIMBODY_COMMON_H_
2 #define SimTK_SIMBODY_COMMON_H_
58 #pragma warning(disable:4231) // need to use 'extern' template explicit instantiation
60 #if defined(SimTK_SIMBODY_BUILDING_SHARED_LIBRARY)
61 #define SimTK_SIMBODY_EXPORT __declspec(dllexport)
64 #pragma warning(disable:4661)
66 #elif defined(SimTK_SIMBODY_BUILDING_STATIC_LIBRARY) || defined(SimTK_USE_STATIC_LIBRARIES)
67 #define SimTK_SIMBODY_EXPORT
69 #define SimTK_SIMBODY_EXPORT __declspec(dllimport) // i.e., a client of a shared library
72 #define SimTK_SIMBODY_EXPORT // Linux, Mac
229 namespace Exception {
236 setMessage(method +
" failed because:\n " + cause);
256 +
" can't represent the given " + quantity +
" to machine precision");
274 setMessage(
"Loop constraint construction failure: " + msg);
285 #endif // SimTK_SIMBODY_COMMON_H_