Atari: Exit_handler
This commit is contained in:
		
							parent
							
								
									e3d9dca566
								
							
						
					
					
						commit
						bf16f3fe7d
					
				@ -592,6 +592,13 @@ CT_ASSERT(sizeof(T_Components)==3);
 | 
				
			|||||||
// when sizeof(T_Palette) is not 768.
 | 
					// when sizeof(T_Palette) is not 768.
 | 
				
			||||||
CT_ASSERT(sizeof(T_Palette)==768);
 | 
					CT_ASSERT(sizeof(T_Palette)==768);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#if defined(__MINT__)
 | 
				
			||||||
 | 
					static void Exit_handler(void)
 | 
				
			||||||
 | 
					{
 | 
				
			||||||
 | 
					  printf("Press any key to quit.\n");
 | 
				
			||||||
 | 
					  (void)Cnecin();
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					#endif
 | 
				
			||||||
 | 
					
 | 
				
			||||||
/**
 | 
					/**
 | 
				
			||||||
 * Initialize the  program.
 | 
					 * Initialize the  program.
 | 
				
			||||||
@ -621,6 +628,7 @@ int Init_program(int argc,char * argv[])
 | 
				
			|||||||
  printf(" /|\\ GrafX2 %.19s\n", Program_version);
 | 
					  printf(" /|\\ GrafX2 %.19s\n", Program_version);
 | 
				
			||||||
  printf(" compilation date: %.16s\n", __DATE__);
 | 
					  printf(" compilation date: %.16s\n", __DATE__);
 | 
				
			||||||
  printf("===============================\n");
 | 
					  printf("===============================\n");
 | 
				
			||||||
 | 
					  atexit(Exit_handler);
 | 
				
			||||||
  #endif
 | 
					  #endif
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#ifdef ENABLE_FILENAMES_ICONV
 | 
					#ifdef ENABLE_FILENAMES_ICONV
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user