src/thread/windows/SDL_systhread.c
changeset 7735 eeba085802ca
parent 7724 54c06b0f65d9
child 7828 1451063c8ecd
equal deleted inserted replaced
7733:957d7137867c 7735:eeba085802ca
   166 
   166 
   167 void
   167 void
   168 SDL_SYS_SetupThread(const char *name)
   168 SDL_SYS_SetupThread(const char *name)
   169 {
   169 {
   170     if (name != NULL) {
   170     if (name != NULL) {
   171         #ifdef _MSC_VER
   171         #if (defined(_MSC_VER) && defined(_M_IX86))
   172         /* This magic tells the debugger to name a thread if it's listening.
   172         /* This magic tells the debugger to name a thread if it's listening.
   173             The inline asm sets up SEH (__try/__except) without C runtime
   173             The inline asm sets up SEH (__try/__except) without C runtime
   174             support. See Microsoft Systems Journal, January 1997:
   174             support. See Microsoft Systems Journal, January 1997:
   175             http://www.microsoft.com/msj/0197/exception/exception.aspx */
   175             http://www.microsoft.com/msj/0197/exception/exception.aspx */
   176         INT_PTR handler = (INT_PTR) ignore_exception;
   176         INT_PTR handler = (INT_PTR) ignore_exception;