I was looking at some kind of C code and I found this line.
if (temp==NULL) while (1) ;
From my understanding, when you get into an infinite loop, you do not exit if you do not break, how does it work? it breaks if the if statement is not NULL, if so, which forces it to check the if statement again and again?
For more information, find the source code for realboy, file gboy_lcd.cLine 304https://github.com/guilleiguaran/realboy/blob/ed30dee751c3f78964e71930a8f87d2074362b9b/gboy_lcd.c
This is a very stable and good gameboy emulator, although for Linux
- . temp NULL, while. , , .
/ (, , , , ,...), //. , , . , , ,
PS - downvotes -
while, temp - NULL.
temp
NULL
while (1) , 1!= 1, .
Allman:
if (temp == NULL) { while(1) { } }
, , if while.
if
while
temp while.
, /, if , while . : .
, , .
, , , , "". : http://sourceforge.net/p/realboy/code/ci/master/tree/src/gboy_video.c
"vid_frame_update()". , 141. Super Game Boy "" 102.
168 ('vid_start()'), , () "temp" ( x1 x4 sgb_1 sgb_4), . , , "" .
, , , , - , ( , , - ). , -!
Thank.
It should be easier to understand that upon successful completion, ifit enters the while loop, iterating in a continuous loop,
if (temp==NULL){ while (1) { } }
Source: https://habr.com/ru/post/1530692/More articles:Creating and deleting pubsub nodes programmatically in ejabberd - erlangRegex to limit the number of instances of any character in a string - regexhttps://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1530689/what-are-the-default-parameters-to-simpleformatter-with-the-default-java-logging-api&usg=ALkJrhjBEkdUeiyIb7CDowKY3aQbqUCXsQДобавить кнопку/ссылку сразу после заголовка на пользовательский экран редактирования типа сообщения - htmlCan I read files in GHCJS? - haskellRails Preconfigured Virtual Machine - ruby-on-railsget all children whose grandparents identifier is 1 - c #Can Cassandra be used as LRU cache - databaseResize SKSpriteNode? Isometric Tasks - objective-cList insertion order based on the next list - listAll Articles