/** * Return the name of the function at the given dispatch offset. * This is only intended for debugging. */ const char * _glapi_get_proc_name(GLuint offset) { const char * n; /* search built-in functions */ n = get_static_proc_name(offset); if ( n != NULL ) { return n; } /* search added extension functions */ return get_extension_proc_name(offset); }
/** * Return the name of the function at the given dispatch offset. * This is only intended for debugging. */ const char * _glapi_get_proc_name(GLuint offset) { GLuint i; const char * n; /* search built-in functions */ n = get_static_proc_name(offset); if ( n != NULL ) { return n; } /* search added extension functions */ for (i = 0; i < NumExtEntryPoints; i++) { if (ExtEntryTable[i].dispatch_offset == offset) { return ExtEntryTable[i].name; } } return NULL; }