]> git.lyx.org Git - lyx.git/blob - sigc++/marshal.cc
move the most important changes from branch new_insets to head. Still dependant on...
[lyx.git] / sigc++ / marshal.cc
1 #include <sigc++/marshal.h>
2 #ifdef SIGC_PTHREADS
3 #include <sigc++/thread.h>
4 #endif
5
6 #ifdef SIGC_CXX_NAMESPACES
7 namespace SigC
8 {
9 #endif 
10
11
12 int ignore_(int value)
13   {
14 #ifdef SIGC_PTHREADS
15 static Threads::Private<int> ignore;
16 #else
17 static int ignore;
18 #endif
19    int rc=ignore;
20    ignore=value;
21    return rc;
22   }
23
24 int RetCode::check_ignore()
25   {
26    return ignore_(0);
27   }
28
29 void RetCode::ignore()
30   {
31    ignore_(1);
32   }
33
34
35 #ifdef SIGC_CXX_NAMESPACES
36 } /* namespace sigc */
37 #endif
38