Welcome, Guest. Please login or register.

What openbor you prefer: Double dragon,battletoads or final fight !? by lirexpatrio
[December 07, 2012, 07:15:27 pm]


what are your favorite games OpenBOR?! by lirexpatrio
[December 07, 2012, 07:09:46 pm]


Post Some Awesome Videos by maxman
[December 07, 2012, 05:51:39 pm]


Can @cmd playmusic "aaaa" 1 also increse music sound ? by BeasTie
[December 07, 2012, 05:24:38 pm]


Streets of Rage: Silent Storm by mtrain
[December 07, 2012, 03:45:05 pm]


Site will be down for maintenance on 12/8/2012 thru 12/10/2012 by Damon Caskey
[December 07, 2012, 07:42:42 am]


Cancelled SOR 3d Remake by riccochet
[December 07, 2012, 03:58:33 am]


Dungeon Fighter: B.O.R. by msmalik681
[December 07, 2012, 03:24:27 am]


[TUTORIAL] How to create 4 Games of OpenBOR in 1 CD (650 MB) by magggas
[December 06, 2012, 09:46:25 pm]


custknife by Bloodbane
[December 06, 2012, 09:34:09 pm]


blockfx help by B.Kardi
[December 06, 2012, 04:09:14 pm]


street of age 4 hd by corradlo
[December 06, 2012, 01:41:36 pm]


ClaFan - Classic Fantasy ver 1.17 by soniczxblade
[December 06, 2012, 05:01:20 am]


Bug Archive by Bloodbane
[December 06, 2012, 02:00:44 am]


"Bio-Doom" and "Gears of Doom" by BulletBob
[December 05, 2012, 10:07:21 pm]


Contra Locked 'N' Loaded v2 by Bloodbane
[December 05, 2012, 09:39:43 pm]


Downloadable OpenBoR Manual by BeasTie
[December 05, 2012, 08:31:24 pm]


Having trouble testing changes by B.Kardi
[December 05, 2012, 03:05:53 pm]


DragonBall Absalon by msmalik681
[December 05, 2012, 02:52:13 pm]


[Hi-Res] Swamp by Vibrant
[December 05, 2012, 10:47:14 am]


  • Dot Guests: 146
  • Dot Hidden: 0
  • Dot Users: 0

There aren't any users online.



Author Topic: #if and #elif in the preprocessor  (Read 808 times)

0 Members and 1 Guest are viewing this topic.

Offline Plombo

  • Hero Member
  • *****
  • Posts: 1724
  • Your source for useful modding tools!
#if and #elif in the preprocessor
« on: March 14, 2012, 08:07:45 pm »
So, as some of you might have noticed, I haven't been very active in OpenBOR development (or the community apart from the chat/IRC) for most of the last year.  Recently, though, I've been working on adding #if/#elif support to the preprocessor.

Since #if and #elif are the only major C preprocessor features that OpenBOR's preprocessor doesn't already support, this will make it so that C/C++ programmers can just use the preprocessor in scripts like they're used to without having to worry about which features are supported and which ones aren't.

The support is actually already working, but I'm fixing some bugs elsewhere in the preprocessor before I commit anything. :)

Offline Plombo

  • Hero Member
  • *****
  • Posts: 1724
  • Your source for useful modding tools!
Re: #if and #elif in the preprocessor
« Reply #1 on: March 23, 2012, 04:38:41 pm »
In case anyone was wondering, it's been more than a week since I made that post, but I'm still around and planning to get back to this soon.  I was really busy with that annoying "real life" thing for most of last week, then spent this week taking things easy and not coding much. ;D

Offline volcanic

  • Hero Member
  • *****
  • Posts: 706
  • Nobody
Re: #if and #elif in the preprocessor
« Reply #2 on: March 24, 2012, 09:44:53 pm »
Hi.
Plombo.
Glad you're back on code.
But I'm wondering what this feature use for?

Offline msmalik681

  • Hero Member
  • *****
  • Posts: 561
Re: #if and #elif in the preprocessor
« Reply #3 on: March 25, 2012, 05:32:16 pm »
i would like to know too

Offline Plombo

  • Hero Member
  • *****
  • Posts: 1724
  • Your source for useful modding tools!
Re: #if and #elif in the preprocessor
« Reply #4 on: March 27, 2012, 05:27:06 pm »
Hi.
Plombo.
Glad you're back on code.
But I'm wondering what this feature use for?

It's for doing advanced things with script. :)

Offline msmalik681

  • Hero Member
  • *****
  • Posts: 561
Re: #if and #elif in the preprocessor
« Reply #5 on: March 28, 2012, 05:21:24 pm »
could you give any examples ?

Offline Plombo

  • Hero Member
  • *****
  • Posts: 1724
  • Your source for useful modding tools!
Re: #if and #elif in the preprocessor
« Reply #6 on: April 04, 2012, 05:59:03 pm »
could you give any examples ?

I'll provide examples of how to use it when I finish it and commit it.

Sorry for being horribly slow about replying (and about finishing this work).  I'm a busier person than I used to be. :(

 



 0%




mighty
SimplePortal 2.3.3 © 2008-2010, SimplePortal