summaryrefslogtreecommitdiff
path: root/src/egl/main/egldriver.h
diff options
context:
space:
mode:
authorChia-I Wu <olvaffe@gmail.com>2010-02-05 11:42:05 +0800
committerChia-I Wu <olvaffe@gmail.com>2010-02-05 11:45:01 +0800
commitcb260e1d18726814a43f51c4e16e4bd8d65736e2 (patch)
treec42263fd80d887532d30e9fe471f9085097c02f1 /src/egl/main/egldriver.h
parenta35e63382e5a8b5ee81bf8c8d2cafb2da937f71c (diff)
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.
Diffstat (limited to 'src/egl/main/egldriver.h')
-rw-r--r--src/egl/main/egldriver.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/egl/main/egldriver.h b/src/egl/main/egldriver.h
index c1e6fa28209..55686681dcb 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) \