mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-27 06:19:36 +00:00
6d678c927c
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@808 a592a061-630c-0410-9148-cb99ea01b6c8
39 lines
474 B
C++
39 lines
474 B
C++
#include <sigc++/marshal.h>
|
|
#ifdef SIGC_PTHREADS
|
|
#include <sigc++/thread.h>
|
|
#endif
|
|
|
|
#ifdef SIGC_CXX_NAMESPACES
|
|
namespace SigC
|
|
{
|
|
#endif
|
|
|
|
|
|
int ignore_(int value)
|
|
{
|
|
#ifdef SIGC_PTHREADS
|
|
static Threads::Private<int> ignore;
|
|
#else
|
|
static int ignore;
|
|
#endif
|
|
int rc=ignore;
|
|
ignore=value;
|
|
return rc;
|
|
}
|
|
|
|
int RetCode::check_ignore()
|
|
{
|
|
return ignore_(0);
|
|
}
|
|
|
|
void RetCode::ignore()
|
|
{
|
|
ignore_(1);
|
|
}
|
|
|
|
|
|
#ifdef SIGC_CXX_NAMESPACES
|
|
} /* namespace sigc */
|
|
#endif
|
|
|