[futurebasic] Re: [FB] Re: Re: Sound playing (GCC Error)

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : April 2010 : Group Archive : Group : All Groups

From: Robert Purves <listrp@...>
Date: Sun, 25 Apr 2010 16:17:05 +1200
Robert Covington wrote:

> Noticed while looking the FBtoC .m's: FBtoC needs to add a single carriage return after each BeginCFunction/EndC insert, otherwise they run into each other and then at the top of the other functions.

Good idea, thanks. Fixed for next release.

BeginCFunction
void foo( void )
{
}
EndC

BeginCFunction
void bar( void )
{
}
EndC

Was:
///////////////////////////////////////////////////
//       translated globals and fns              //
///////////////////////////////////////////////////
void foo( void )
{
}
void bar( void )
{
}


Will be:
///////////////////////////////////////////////////
//       translated globals and fns              //
///////////////////////////////////////////////////
 
void foo( void )
{
}
 
void bar( void )
{
}

Robert P.