Skip to content
Snippets Groups Projects
Commit 9dd6201d authored by Mark Winter's avatar Mark Winter
Browse files

Support script warning message output

parent 5def621b
Branches
No related tags found
No related merge requests found
......@@ -36,6 +36,12 @@ namespace Script
mexPrintf(fmt, std::forward<Args>(args)...);
}
template <typename... Args>
inline void warnMsg(const char* fmt, Args&&... args)
{
mexWarnMsgTxt(formatMsg(fmt, std::forward<Args>(args)...).c_str());
}
template <typename... Args>
inline void errorMsg(const char* fmt, Args&&... args)
{
......
......@@ -39,6 +39,12 @@ namespace Script
PySys_WriteStdout(fmt, std::forward<Args>(args)...);
}
template <typename... Args>
inline void warnMsg(const char* fmt, Args&&... args)
{
PyErr_WarnFormat(nullptr, 2, fmt, std::forward<Args>(args)...);
}
template <typename... Args>
inline void errorMsg(const char* fmt, Args&&... args)
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment