I was looking at some C code and I found this line.
if (temp==NULL)
while (1) ;
From my understanding when you get into a infinite loop there is no getting out unless you break, how does this work? does it break when if statement is not NULL if so, what makes it keep checking the if statement over and over again?
For more information look for the realboy source code the file is gboy_lcd.c
Line 304
https://github.com/guilleiguaran/realboy/blob/ed30dee751c3f78964e71930a8f87d2074362b9b/gboy_lcd.c
It's a very stable and good gameboy emulator though for linux