| 180 | } |
| 181 | |
| 182 | void bf::System::Runtime::Dbg_Init(int version, int flags, BfRtCallbacks* callbacks) |
| 183 | { |
| 184 | #ifndef BFRTMERGED |
| 185 | |
| 186 | if (version != BFRT_VERSION) |
| 187 | { |
| 188 | BfpSystem_FatalError(StrFormat("BeefDbg build version '%d' does not match requested version '%d'", BFRT_VERSION, version).c_str(), "BEEF FATAL ERROR"); |
| 189 | } |
| 190 | |
| 191 | if (gBfRtDbgCallbacks.Alloc != NULL) |
| 192 | { |
| 193 | BfpSystem_FatalError(StrFormat("BeefDbg already initialized. Multiple executable modules in the same process cannot dynamically link to the Beef debug runtime.").c_str(), "BEEF FATAL ERROR"); |
| 194 | } |
| 195 | |
| 196 | gBfRtDbgCallbacks = *callbacks; |
| 197 | gBfRtDbgFlags = (BfRtFlags)flags; |
| 198 | #ifdef BF_GC_SUPPORTED |
| 199 | gGCDbgData.mDbgFlags = gBfRtDbgFlags; |
| 200 | #endif |
| 201 | |
| 202 | #endif |
| 203 | } |
| 204 | |
| 205 | void* bf::System::Runtime::Dbg_GetCrashInfoFunc() |
| 206 | { |
nothing calls this directly
no test coverage detected