Mercurial > hg > CbC > old > device
view test/putenemy.c @ 533:80b5058f0535 inline-code-gen-passed
inline code-gen test passed.
author | kono |
---|---|
date | Fri, 30 Dec 2005 18:33:55 +0900 |
parents | 5640fb7a270d |
children | ef225b589888 |
line wrap: on
line source
extern int printf(char *,...); void Putenemy(int charno,float x,float y,float sx,float sy,int move) { if(x) printf("#0004:%d %f %f %f %f %d\n",charno,x,y,sx,sy,move); else printf("#0006:check\n"); } int main() { int ix=32,iy=32; float fx=32,fy=32; Putenemy(0,ix,iy,1,0,10); Putenemy(1,(float)ix,(float)iy,1,0,10); Putenemy(2,(float)ix,(float)iy,(float)ix,(float)iy,ix); Putenemy(3,(float)ix,(float)iy,(float)ix,0,ix); Putenemy(4,fx,fy,1,0,10); }