On 29.02.2012 09:52, Evgeny Voevodin wrote:
> include/qemu/object.h:
[]
>  * void my_device_class_init(ObjectClass *klass, void *class_data)
>  * {
>  *     DeviceClass *dc = DEVICE_CLASS(klass);
>  *     dc->reset = my_device_reset;
>  * }
>  *
> 
> Why to use "klass", not "class"?

Because in C++, "class" is a reserved word.  It is quite typical idiom
to replace class with klass in (public) headers.

/mjt


Reply via email to