'noload_c' based generated code causes syntax error in VS 2010

Create issue
Issue #45 resolved
Former user created an issue

lua LoadGen.lua -style=noload_c -spec=gl -version=3.3 -profile=compatibility compatibility_3_3

creates the following code for the *.c file

typedef struct ogl_MapTable_s
{
    char *extName;
    int *extVariable;
}ogl_MapTable;

static ogl_MapTable g_mappingTable[1] =
{
};  // error

I'm more a C++ programmer, but I think to remember that skipping the empty initialization list completely should create a zero-initialized array in C.

Michael

Comments (2)

  1. Jason McKesson repo owner

    This will be fixed in the next version of glLoadGen. Which will be released before next week.

  2. Log in to comment