Logo ROOT   6.08/07
Reference Guide
TCallContext.cxx
Go to the documentation of this file.
1 // Bindings
2 #include "PyROOT.h"
3 #include "TCallContext.h"
4 
5 
6 //- data _____________________________________________________________________
7 namespace PyROOT {
8 
10 // this is just a data holder for linking; actual value is set in RootModule.cxx
12 
13 } // namespace PyROOT
14 
15 
16 ////////////////////////////////////////////////////////////////////////////////
17 /// Set the global memory policy, which affects object ownership when objects
18 /// are passed as function arguments.
19 
21 {
22  if ( kUseHeuristics == e || e == kUseStrict ) {
23  sMemoryPolicy = e;
24  return kTRUE;
25  }
26  return kFALSE;
27 }
28 
29 ////////////////////////////////////////////////////////////////////////////////
30 /// Set the global signal policy, which determines whether a jmp address
31 /// should be saved to return to after a C++ segfault.
32 
34 {
35  if ( kFast == e || e == kSafe ) {
36  sSignalPolicy = e;
37  return kTRUE;
38  }
39  return kFALSE;
40 }
41 
static ECallFlags sSignalPolicy
Definition: TCallContext.h:53
bool Bool_t
Definition: RtypesCore.h:59
const Bool_t kFALSE
Definition: Rtypes.h:92
static Bool_t SetMemoryPolicy(ECallFlags e)
Set the global memory policy, which affects object ownership when objects are passed as function argu...
static Bool_t SetSignalPolicy(ECallFlags e)
Set the global signal policy, which determines whether a jmp address should be saved to return to aft...
you should not use this method at all Int_t Int_t Double_t Double_t Double_t e
Definition: TRolke.cxx:630
const Bool_t kTRUE
Definition: Rtypes.h:91
static ECallFlags sMemoryPolicy
Definition: TCallContext.h:49