Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help with porting allegro timer
#1
I'm trying to copy the method of using a timer for Allegro that is in C++. The problem is I don't know how to convert some things from C++ to FB:
Code:
volatile long speed_counter = 0; //what would I use for volatiles?

void increment_speed_counter() //a function
{
  speed_counter++;  //easy: speed_counter = speed_counter + 1
}
END_OF_FUNCTION(increment_speed_counter);  //that is a macro,
                                                                         //how would I use?

//more macros...

LOCK_VARIABLE(speed_counter);
LOCK_FUNCTION(increment_speed_counter);

I don't know how to do the volatile variables and the macros. How would I make those?
Reply


Messages In This Thread
Help with porting allegro timer - by Jotz - 03-02-2005, 08:57 AM
Help with porting allegro timer - by DrV - 03-03-2005, 06:29 AM
Help with porting allegro timer - by Jotz - 03-03-2005, 11:38 PM
Help with porting allegro timer - by shiftLynx - 03-04-2005, 12:16 AM
Help with porting allegro timer - by Jotz - 03-04-2005, 12:48 AM
Help with porting allegro timer - by Jotz - 03-08-2005, 02:52 AM
Help with porting allegro timer - by v3cz0r - 03-08-2005, 03:22 AM
Help with porting allegro timer - by Jotz - 03-08-2005, 07:15 AM
Help with porting allegro timer - by DrV - 03-08-2005, 07:46 AM
Help with porting allegro timer - by Jotz - 03-08-2005, 09:57 AM
Help with porting allegro timer - by v3cz0r - 03-09-2005, 02:40 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)