| | slinga said: | The following f(x) prototype won't compile: Code: | | | int init_level(int level, char* pal); |
Giving the error: globals.h:254: error: syntax error before numeric constant. I spent nearly one hour trying to figure out what the hell was going on. Turns out "pal" is #defined somewhere in the sgl.... |
You are right, from SGL.H lines 24-30: Code: | | | /********************************/ /* Old Texture Table */ /********************************/ #define cgaddress 0x10000 #define pal COL_32K #define TEXDEF(h,v,presize) {h,v,(cgaddress+(((presize)*4)>>(pal)))/8,(((h)&0x1f8)<<5 | (v))} #define PICDEF(texno,cmode,pcsrc) {(Uint16)(texno),(Uint16)(cmode),(void *)(pcsrc)} |
I think I once had this problem, too. |