MCPcopy Create free account
hub / github.com/anjo76/angelscript / CObject

Class CObject

sdk/tests/test_feature/source/test_exceptionmemory.cpp:61–80  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

59static int CObject_constructCount = 0;
60static int CObject_destructCount = 0;
61class CObject
62{
63public:
64 CObject()
65 {
66 val = ('C' | ('O'<<8) | ('b'<<16) | ('j'<<24));
67 mem = new int[1];
68 *mem = ('M' | ('e'<<8) | ('m'<<16) | (' '<<24));
69 //PRINTF("C: %x\n", this);
70 CObject_constructCount++;
71 }
72 ~CObject()
73 {
74 delete[] mem;
75 //PRINTF("D: %x\n", this);
76 CObject_destructCount++;
77 }
78 int val;
79 int *mem;
80};
81
82void Assign_gen(asIScriptGeneric *)
83{

Callers 2

SuspendObjFunction · 0.70
ExceptionObjFunction · 0.70

Calls

no outgoing calls

Tested by 2

SuspendObjFunction · 0.56
ExceptionObjFunction · 0.56