Ellery,
Have you seen the "def _PASSTHROUGH" construct:
#if def _PASSTHROUGH
void MyNativeCFunction()
{
printf( "myVar = %d
", myVar );
}
#endif
You can place C code directly inside your FB source code file, and wrap it
around the "#if def _PASSTHROUGH" and "#endif" statement.
When translating, it skips over this section and places the text directly
into the translated C source code file.
> From: Ellery Bann <ellery@...>
> Reply-To: <futurebasic@...>
> Date: Wed, 21 Jan 2009 16:39:21 -0200
> To: <futurebasic@...>
> Subject: Re: [FB] A few beginner questions
>
> 1) Would there be any interest in a FBtoC where the code generated are
> purely standard C based on the standard C library (clib/glib)?
> Obviously GUI/Graphics would not be implemented... yet... perhaps
> later with other toolkits, e.g. GTK, Qt, etc.
>
> 2) Would it be redundant or waste of time?
>
> I'm thinking about:
>
> text games like the old adventure games
> Hack-like games
> chess engines
> command line tools
> etc.
>
> --
> To unsubscribe, send ANY message to: futurebasic-unsubscribe@...