Gamestudio Links
Zorro Links
Newest Posts
Zorro 2.70
by jcl. 09/29/25 09:24
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
1 registered members (TipmyPip), 18,633 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Preprocessor.... #384087
09/29/11 02:26
09/29/11 02:26
Joined: Aug 2003
Posts: 902
Van Buren, Ar
Gordon Offline OP
User
Gordon  Offline OP
User

Joined: Aug 2003
Posts: 902
Van Buren, Ar
The preprocesser for lite-c is missing some functionality.

1) The manifest constants __FILE__ and __LINE__

2) the ability to do #if (logical expression)
where logical expression is made up of simple math
and defined values and constants.


Our new web site:Westmarch Studios
Re: Preprocessor.... [Re: Gordon] #384194
09/30/11 14:06
09/30/11 14:06
Joined: Jul 2000
Posts: 28,024
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 28,024
Frankfurt
Yes, those new features for the preprocessor are certainly useful, however they are not planned in the next time - more important things have higher priority.

Re: Preprocessor.... [Re: jcl] #384203
09/30/11 16:38
09/30/11 16:38
Joined: Apr 2007
Posts: 3,751
Canada
WretchedSid Offline
Expert
WretchedSid  Offline
Expert

Joined: Apr 2007
Posts: 3,751
Canada
Is there a reason why __FILE__ and __LINE__ has such a low priority? I mean, the compiler should have these informations and it shouldn't be too hard to just extend __FILE__ with a static string and __LINE__ with an integer value. From my perspective this sounds like a morning of work max? Or am I overlooking something? Because __FILE__ and __LINE__ are certainly nice to have, for example to write some nice logging system.


Shitlord by trade and passion. Graphics programmer at Laminar Research.
I write blog posts at feresignum.com
Re: Preprocessor.... [Re: WretchedSid] #408454
10/01/12 15:09
10/01/12 15:09
Joined: Sep 2007
Posts: 101
Luxembourg
K
krial057 Offline
Member
krial057  Offline
Member
K

Joined: Sep 2007
Posts: 101
Luxembourg
One year passed and still no news on this.
The __FILE__ and __LINE__ macros would be really helpful(already requested multiple times since 2007 )
Also, the #(stringify operator) doesn't work for macros...(requested since 2009 )
(Sorry for digging up the old thread, but those macros would be really helpful for my current project)

Last edited by krial057; 10/01/12 17:49.
Re: Preprocessor.... [Re: krial057] #408467
10/01/12 19:22
10/01/12 19:22
Joined: Feb 2005
Posts: 3,687
Hessen, Germany
T
Tempelbauer Offline
Expert
Tempelbauer  Offline
Expert
T

Joined: Feb 2005
Posts: 3,687
Hessen, Germany
Quote:
The __FILE__ and __LINE__ macros would be really helpful

agreed

Re: Preprocessor.... [Re: Tempelbauer] #408494
10/02/12 12:15
10/02/12 12:15
Joined: Jul 2000
Posts: 28,024
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 28,024
Frankfurt
I guess the low priority is because none of us is using __FILE__ and __LINE__ in his code. But ok, I see that they may be useful and have put them on the list for 8.60.

However, for logging or version management I recommend TortoiseSVN - that's certainly better than macros in the code, and has more than once saved my day.

Re: Preprocessor.... [Re: jcl] #408508
10/02/12 16:05
10/02/12 16:05
Joined: Jan 2002
Posts: 4,225
Germany / Essen
Uhrwerk Offline
Expert
Uhrwerk  Offline
Expert

Joined: Jan 2002
Posts: 4,225
Germany / Essen
__FILE__ and __LINE__ for version managment?

Subversion for logging purposes?

Now I'm bemused...


Always learn from history, to be sure you make the same mistakes again...
Re: Preprocessor.... [Re: Uhrwerk] #408614
10/04/12 15:32
10/04/12 15:32
Joined: Sep 2007
Posts: 101
Luxembourg
K
krial057 Offline
Member
krial057  Offline
Member
K

Joined: Sep 2007
Posts: 101
Luxembourg
Nice! thank you.
I need it for a frame based user interface not for logging or version managment(whatever you mean with logging with tortoisesvn oO)


Moderated by  aztec, Spirit 

Gamestudio download | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1