From cb260e1d18726814a43f51c4e16e4bd8d65736e2 Mon Sep 17 00:00:00 2001 From: Chia-I Wu Date: Fri, 5 Feb 2010 11:42:05 +0800 Subject: egl: Update the comments to typecast macros. Put a note that the macros define functions and should not be ended with a semicolon when used. --- src/egl/main/egldriver.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/egl/main/egldriver.h') diff --git a/src/egl/main/egldriver.h b/src/egl/main/egldriver.h index c1e6fa2820..55686681dc 100644 --- a/src/egl/main/egldriver.h +++ b/src/egl/main/egldriver.h @@ -8,6 +8,9 @@ /** * Define an inline driver typecast function. + * + * Note that this macro defines a function and should not be ended with a + * semicolon when used. */ #define _EGL_DRIVER_TYPECAST(drvtype, egltype, code) \ static INLINE struct drvtype *drvtype(const egltype *obj) \ @@ -17,6 +20,9 @@ /** * Define the driver typecast functions for _EGLDriver, _EGLDisplay, * _EGLContext, _EGLSurface, and _EGLConfig. + * + * Note that this macro defines several functions and should not be ended with + * a semicolon when used. */ #define _EGL_DRIVER_STANDARD_TYPECASTS(drvname) \ _EGL_DRIVER_TYPECAST(drvname ## _driver, _EGLDriver, obj) \ -- cgit v1.2.3