Added LAST_ELEMENT_MARKER for every enum used in the C interface

This commit is contained in:
Sergey Kosarevsky 2019-12-30 11:11:55 +03:00
parent b80a63a0ba
commit 0e65b31641
2 changed files with 15 additions and 2 deletions

View file

@ -38,6 +38,8 @@
#ifndef _VERSIONS_INCLUDED_
#define _VERSIONS_INCLUDED_
#define LAST_ELEMENT_MARKER(x) x
//
// Help manage multiple profiles, versions, extensions etc.
//
@ -54,7 +56,8 @@ typedef enum {
ENoProfile = (1 << 0), // only for desktop, before profiles showed up
ECoreProfile = (1 << 1),
ECompatibilityProfile = (1 << 2),
EEsProfile = (1 << 3)
EEsProfile = (1 << 3),
LAST_ELEMENT_MARKER(EProfileCount),
} EProfile;
namespace glslang {