MCPcopy Create free account
hub / github.com/beefytech/Beef / Dbg_Init

Method Dbg_Init

BeefRT/dbg/DbgInternal.cpp:182–203  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

180}
181
182void 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
205void* bf::System::Runtime::Dbg_GetCrashInfoFunc()
206{

Callers

nothing calls this directly

Calls 2

BfpSystem_FatalErrorFunction · 0.50
c_strMethod · 0.45

Tested by

no test coverage detected