Something went wrong. Try again.
Cider Isn't Darwin Emulation, Really
Something went wrong. Try again.
1234567891011121314151617181920212223242526#!/bin/sh
set -e
cfile=/tmp/sizeof.$$.cppinclude="$1"struct="$2"
cat > $cfile <<END#include <stdio.h>#include <$include>
int main(){ printf("sizeof($struct)=%d\n", sizeof($struct)); return 0;}
END
g++ -w $cfile -o $cfile.bin$cfile.bin
rm $cfile*