Notices tagged with define
-
how glorious, running on every map restart if a certain #define is used (most often at the same time with a compilation) https://kiwiposter.club/attachment/2308524
-
#define traps gay
-
#define COFE (69)
-
my favorite hashtag is #define
-
back in school we had hp-ux machines with massive 1600x1200 monitors. I wanted a cool background for my desktop so I got a masamune shirou image, and converted it to the only color format that X on hp-ux supported, .XBM
which turns out looks like this:
#define test_width 16
#define test_height 7
static char test_bits[] = {
0x13, 0x00, 0x15, 0x00, 0x93, 0xcd, 0x55, 0xa5, 0x93, 0xc5, 0x00, 0x80,
0x00, 0x60 };
for a 1600x1200 24-bit color desktop :-( my desktop took five minutes to load just to display the background... -
#define sizeof(x) rand()
-
#define BITCOUNT(x) (((BX_(x)+(BX_(x)>>4)) & 0x0F0F0F0F) % 255)#define BX_(x) ((x) - (((x)>>1)&0x77777777) \ - (((x)>>2)&0x33333333) \ - (((x)>>3)&0x11111111)) -- really weird C code to count the number of bits in a word
-
#define BITCOUNT(x) (((BX_(x)+(BX_(x)>>4)) & 0x0F0F0F0F) % 255)#define BX_(x) ((x) - (((x)>>1)&0x77777777) \ - (((x)>>2)&0x33333333) \ - (((x)>>3)&0x11111111)) -- really weird C code to count the number of bits in a word
-
@rebekacatalina iirc #define FOO 12 means all occurrences of FOO in the source code get replaced with 12. Same as if you search and replaced FOO with 12 using a text editor.
-
@l1ghtsword I think C11 also includes a clean way of using variable-number arguments in macros. #define warn(fmt, ...) fprintf(stderr, fmt, __VA_ARGS__)
-
#define RDN "butts"
-
!coderponies
analogmove = (!netgame
&& ((player == &players[consoleplayer] && cv_analog.value)
|| (player == &players[secondarydisplayplayer] && cv_analog2.value))
&& thiscam->chase);
cmd = &player->cmd;
if ((twodlevel || (actor->target->flags2 & MF2_TWOD)))
movepushangle = ANGLE_90;
else if (analogmove)
movepushangle = thiscam->angle;
else
movepushangle = actor->angle;
#define GLIDEMOVEFACTOR 600
P_Thrust(actor, movepushangle, cmd->forwardmove*GLIDEMOVEFACTOR);
P_Thrust(actor, movepushangle-ANGLE_90, cmd->sidemove*GLIDEMOVEFACTOR);Sunday, 22-Jun-14 05:59:14 UTC from web -
I didn't realize CPP would let you #define C keywords. It's... eeeeeeeeeevil.
-
Sunday, 15-Apr-12 23:01:13 UTC from web
-
@comradescootaloo return ERROR_SUCCESS. Oh and: #define Bork for #define bork fork main() {Bork(bork(); bork(); bork()) { bork(); } }
-
#define mangoeser struct
-
#define Online
-
@purplephish20 #define Midday?
-
RT @rotation Why isn't #JohnBarrowman a popular tag any more. I must right this injustice. Also #define because.
Thursday, 05-Jan-12 23:39:36 UTC from web