Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-

Sepples sucks

Name: Anonymous 2011-10-21 14:02

I had following C/C++ macro

#define fromA1R5G5B5(A,R,G,B,C) do { \
  B = ((((C)>> 0)&0x1f)<<3)|0x7; \
  G = ((((C)>> 5)&0x1f)<<3)|0x7; \
  R = ((((C)>>10)&0x1f)<<3)|0x7; \
  A = ((C)>>15)&1; \
 } while (0)


and it fucked me up, when I wrote fromA1R5G5B5(A, R, G, B, *Z++)

WTF? Cant they just allow gensyms?

Name: Anonymous 2011-10-21 14:05

use templates instead.

Name: Anonymous 2011-10-21 14:07

>>2
I dont like templates, they remind me of Haskell.

Name: Anonymous 2011-10-21 14:34

>>3
Haskell is gods gift to man.

Name: Anonymous 2011-10-21 14:40

>>4
Haskell is Moses' gift to jewkind.

Name: Anonymous 2011-10-21 14:46

>>5
Back to /russia/, please!

Name: Anonymous 2011-10-21 15:00

typeof(C) _C = C;

Name: Anonymous 2011-10-21 15:06

>>7
fromA1R5G5B5(A,R,G,B,_C)

Name: Anonymous 2011-10-21 15:38

>>7
typeof
wtf?

Name: Anonymous 2011-10-21 15:41

>>9
`typeof` is a part of GNU's "embrace, extend and extinguish" doctrine. Basically, they try to do vendor lock-in by supplying non-standard features.

Name: Anonymous 2011-10-21 15:51

Fuck I hate Lithpfags/Hathkellfags.

Name: Anonymous 2011-10-21 16:14

>>10
Haha I never thought of it that way before.

Name: Anonymous 2011-10-21 16:35

[quote]C++ macro[/quote]
Before you complain about it, learn how to use it ``faggot''.

Don't change these.
Name: Email:
Entire Thread Thread List