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

Issue #45 resolved
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;

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.


Comments (2)

  1. Log in to comment