| 189 | |
| 190 | |
| 191 | StackContext::StackContext() |
| 192 | { |
| 193 | #ifdef HXCPP_STACK_TRACE |
| 194 | mIsUnwindingException = false; |
| 195 | #endif |
| 196 | |
| 197 | #if HXCPP_TELEMETRY |
| 198 | mTelemetry = tlmCreate(this); |
| 199 | #endif |
| 200 | |
| 201 | #ifdef HXCPP_DEBUGGER |
| 202 | mDebugger = 0; |
| 203 | #endif |
| 204 | |
| 205 | #ifdef HXCPP_PROFILER |
| 206 | mProfiler = 0; |
| 207 | #endif |
| 208 | |
| 209 | #ifdef HXCPP_SCRIPTABLE |
| 210 | stack = new unsigned char[128*1024]; |
| 211 | pointer = &stack[0]; |
| 212 | push((hx::Object *)0); |
| 213 | frame = pointer; |
| 214 | exception = 0; |
| 215 | breakContReturn = 0; |
| 216 | #endif |
| 217 | |
| 218 | #ifdef HXCPP_COMBINE_STRINGS |
| 219 | stringSet = 0; |
| 220 | #endif |
| 221 | } |
| 222 | |
| 223 | StackContext::~StackContext() |
| 224 | { |