1. Jason McKesson
  2. glLoadGen
  3. Issues
Issue #45 resolved

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

Anonymous 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. Log in to comment