Seasons.NET

ちょっとした技術ブログです

Entries from 2009-05-04 to 1 day

#if 0ハックすごくね?すげーってw

C C++

#If 0ってC,C++では、#endifまで問答無用でコメントにしますが、 これを使ったハックがすごく便利。 元ネタ http://gpwiki.org/index.php/SDL:Tutorial:Using_SDL_net #if 0 #!/bin/sh gcc -o a a.c exit #endif int main( void ) { printf( "Hello\n"); ret…