You are not logged in.

#1 2009-07-23 05:15:45

BlueChip
Moderator

Inline functions

It seems that we are still not using Inline functions properly
http://www.greenend.org.uk/rjk/2003/03/inline.html

BC


I can be found on efnet, freenode, msn, gtalk, aim, ychat & icq ...PM me for details

Offline

 

#2 2009-07-23 21:24:14

Crayon
Bad Mother Fucker

Re: Inline functions

From what I understand I need to delete this in GRRLIB.c:

Code:

// Declare Inline Functions
inline void GRRLIB_FillScreen(u32 color);
inline void GRRLIB_Plot(f32 x, f32 y, u32 color);
inline void GRRLIB_Line(f32 x1, f32 y1, f32 x2, f32 y2, u32 color);
inline void GRRLIB_Rectangle(f32 x, f32 y, f32 width, f32 height, u32 color, u8 filled);
inline void GRRLIB_Circle(f32 x, f32 y, f32 radius, u32 color, u8 filled);
inline void GRRLIB_DrawImg(f32 xpos, f32 ypos, struct GRRLIB_texImg *tex, float degrees, float scaleX, f32 scaleY, u32 color );
inline void GRRLIB_DrawImgQuad(Vector pos[4], struct GRRLIB_texImg *tex, u32 color);
inline void GRRLIB_DrawTile(f32 xpos, f32 ypos, struct GRRLIB_texImg *tex, float degrees, float scaleX, f32 scaleY, u32 color, int frame);
inline void GRRLIB_DrawTileQuad(Vector pos[4], struct GRRLIB_texImg *tex, u32 color,int frame);

And those function need to be declare as extern inline in the header file???

BlueChip if you want to reach me I'm sometimes on the #grrlib on IRC.

Offline

 

Board footer

Powered by FluxBB