test/testerror.c
branchSDL-1.3
changeset 1659 14717b52abc0
parent 1151 be9c9c8f6d53
child 1662 782fd950bd46
child 1895 c121d94672cb
equal deleted inserted replaced
1658:e49147870aac 1659:14717b52abc0
    15 {
    15 {
    16 	SDL_Quit();
    16 	SDL_Quit();
    17 	exit(rc);
    17 	exit(rc);
    18 }
    18 }
    19 
    19 
    20 int ThreadFunc(void *data)
    20 int SDLCALL ThreadFunc(void *data)
    21 {
    21 {
    22 	/* Set the child thread error string */
    22 	/* Set the child thread error string */
    23 	SDL_SetError("Thread %s (%d) had a problem: %s",
    23 	SDL_SetError("Thread %s (%d) had a problem: %s",
    24 			(char *)data, SDL_ThreadID(), "nevermind");
    24 			(char *)data, SDL_ThreadID(), "nevermind");
    25 	while ( alive ) {
    25 	while ( alive ) {