Entries from 2010-04-26 to 1 day

よくあるこういうのにハマった。

c

ついやってしまうので自戒を込めて。(C99) #include <stdio.h> struct vector { double elts[3]; }; #define create_vector_1(a, b, c) (struct vector){ a, b, c } static inline struct vector create_vector_2(double a, double b, double c) { return (struct vec</stdio.h>…