[sheepdog] [PATCH 4/4] sheep: dump cluster info when exiting unexpectedly
Liu Yuan
namei.unix at gmail.com
Thu Feb 28 07:18:08 CET 2013
On 02/28/2013 01:15 AM, MORITA Kazutaka wrote:
> +#define sd_dump_variable(var) ({ \
> + register void *current_sp asm("rsp"); \
> + __sd_dump_variable(#var, current_sp); \
> +})
> +int __sd_dump_variable(const char *var, const void *base_sp);
Why use macro instead of a inline funciton? We'll lose type check for it.
Thanks,
Yuan
More information about the sheepdog
mailing list