C code in Bmax

BlitzMax Forums/BlitzMax Programming/C code in Bmax

can you use some C code for critical functions in blitzmax? If so, is there some example available somewhere?

Thx,

Matteo

C file:
/* addnum.c */
int addFive( int x ){
	return x+5;
}


BMax file:
Import "addnum.c"

Extern
	Function addFive( x )
End Extern

a = 10
a = addFive(a)
print a



That'd be a = addFive(a), Pert ;)

have a look on : http://www.blitzwiki.org/index.php/C_CallBacks

That'd be a = addFive(a), Pert ;)


Uh, yeah. Well spotted. top marks to you.

thanks :)