if we are running under a debugger, then pass true
| 51 | |
| 52 | // if we are running under a debugger, then pass true |
| 53 | bool Debug_Init(bool debugger) { |
| 54 | #ifndef RELEASE |
| 55 | Debug_break = debugger; |
| 56 | |
| 57 | if (Debug_break) |
| 58 | mprintf(0, "Debug Break enabled.\n"); |
| 59 | |
| 60 | #endif // ifndef RELEASE |
| 61 | |
| 62 | return true; |
| 63 | } |
| 64 | |
| 65 | // Does a messagebox with a stack dump |
| 66 | // Messagebox shows topstring, then stack dump, then bottomstring |