Bitcoin Forum
April 27, 2024, 01:03:00 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: loop {} in main.cpp  (Read 8065 times)
lisabeern (OP)
Newbie
*
Offline Offline

Activity: 4
Merit: 0


View Profile
July 16, 2010, 11:48:48 AM
 #1

i'm almost dying asking this question, because the answer must be obvious, and somehow i've never encountered this before!

in main.cpp of the bitcoin client, line 2667,2668 read:

        loop

        {


what is that? it's not a for-loop, a while loop, a do-while loop. is it some sort of macro?

with thanks (and a thousand apologies)

lisa
1714179780
Hero Member
*
Offline Offline

Posts: 1714179780

View Profile Personal Message (Offline)

Ignore
1714179780
Reply with quote  #2

1714179780
Report to moderator
1714179780
Hero Member
*
Offline Offline

Posts: 1714179780

View Profile Personal Message (Offline)

Ignore
1714179780
Reply with quote  #2

1714179780
Report to moderator
1714179780
Hero Member
*
Offline Offline

Posts: 1714179780

View Profile Personal Message (Offline)

Ignore
1714179780
Reply with quote  #2

1714179780
Report to moderator
No Gods or Kings. Only Bitcoin
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1714179780
Hero Member
*
Offline Offline

Posts: 1714179780

View Profile Personal Message (Offline)

Ignore
1714179780
Reply with quote  #2

1714179780
Report to moderator
1714179780
Hero Member
*
Offline Offline

Posts: 1714179780

View Profile Personal Message (Offline)

Ignore
1714179780
Reply with quote  #2

1714179780
Report to moderator
1714179780
Hero Member
*
Offline Offline

Posts: 1714179780

View Profile Personal Message (Offline)

Ignore
1714179780
Reply with quote  #2

1714179780
Report to moderator
Svick
Newbie
*
Offline Offline

Activity: 10
Merit: 0


View Profile
July 16, 2010, 12:18:14 PM
 #2

Yes, it's a macro defined in util.h as

Code:
#define loop for (;;)
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!