■
libibertyのソース見てたらなんかちょっと便利なのを見つけた。
#if DEBUG # include <stdio.h> # include <stdlib.h> int main () { printf ("%12.f %12.f\n", physmem_total (), physmem_available ()); exit (0); } #endif /* DEBUG */ /* Local Variables: compile-command: "gcc -DDEBUG -DHAVE_CONFIG_H -I.. -g -O -Wall -W physmem.c" End: */
こーやっておくと、このバッファでcompileしたときに、これでコンパイルできるようになるっぽい。
末端ソースコードのテストしたいときとか、数行の確認プログラム等に。