tilkinsc/Lua.NET

Change static readonly to const where available

tilkinsc opened this issue · 1 comments

When attempting to do

int status = lua_pcall(L, 0, 0, 0);
switch (status)
{
    case LUA_ERRRUN:
        break;
}

LUA_ERRRUN is required to be a constant. Therefore, this is going to error out. There will be no downsides to converting a lot of variables from static to const.

v1.3.0 a09be23 fixes #3