ignoreAlways - return result of pressing the ignore button. useGuiPrompt - if true, shows a dialog
143 std::string dialogTitle =
"Assertion Failure";
144 std::string dialogText =
"";
145 createErrorMessage(expression, message, filename, lineNumber, dialogTitle, dialogText);
149 postToClipboard(dialogText.c_str());
153 const int cBreak = 0;
154 const int cIgnore = 1;
155 const int cAbort = 2;
157 static const char* choices[] = {
"Debug",
"Ignore",
"Exit"};
160 Log::common()->print(std::string(
"\n**************************\n\n") + dialogTitle +
"\n" + dialogText);
162 int result =
G3D::prompt(dialogTitle.c_str(), dialogText.c_str(), (
const char**)choices, 3, useGuiPrompt);
std::string __cdecl debugPrintf(const char *fmt...) G3D_CHECK_PRINTF_ARGS
Definition: debugAssert.cpp:355
static void createErrorMessage(const char *expression, const std::string &message, const char *filename, int lineNumber, std::string &outTitle, std::string &outMessage)
Definition: debugAssert.cpp:69
int prompt(const char *windowTitle, const char *promptx, const char **choice, int numChoices, bool useGui)
Definition: prompt.cpp:553
void SetLastError(int nError)
Definition: Common.cpp:75
static FileSystem * common
Definition: FileSystem.cpp:45
unsigned int DWORD
Definition: CascPort.h:139
int GetLastError()
Definition: Common.cpp:70