Permalink
Browse files

Merge pull request #51 from belm0/const_fix

luaL_register const correctness
  • Loading branch information...
2 parents 95a3c40 + 09799b5 commit 7c99906f3058b889df81b4e823a0b75234dc6811 @JakobOvrum committed Jun 3, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 luad/c/lauxlib.d
View
@@ -55,10 +55,10 @@ struct luaL_Reg
//C LUALIB_API void (luaI_openlib) (lua_State *L, const char *libname,
//C const luaL_Reg *l, int nup);
-void luaL_openlib(lua_State *L, const(char)* libname, luaL_Reg *l, int nup);
+void luaL_openlib(lua_State *L, const(char)* libname, const luaL_Reg *l, int nup);
//C LUALIB_API void (luaL_register) (lua_State *L, const char *libname,
//C const luaL_Reg *l);
-void luaL_register(lua_State *L, const(char)* libname, luaL_Reg *l);
+void luaL_register(lua_State *L, const(char)* libname, const luaL_Reg *l);
//C LUALIB_API int (luaL_getmetafield) (lua_State *L, int obj, const char *e);
int luaL_getmetafield(lua_State *L, int obj, const(char)* e);
//C LUALIB_API int (luaL_callmeta) (lua_State *L, int obj, const char *e);

0 comments on commit 7c99906

Please sign in to comment.