Created
April 6, 2012 00:10
-
-
Save koron/2315325 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # HG changeset patch | |
| # Parent 1310dc7bc9c3811c1770af164463c7de96059490 | |
| diff -r 1310dc7bc9c3 src/if_lua.c | |
| --- a/src/if_lua.c Fri Apr 06 08:23:12 2012 +0900 | |
| +++ b/src/if_lua.c Fri Apr 06 09:10:27 2012 +0900 | |
| @@ -95,6 +95,7 @@ | |
| #define luaL_loadbufferx dll_luaL_loadbufferx | |
| #define luaL_argerror dll_luaL_argerror | |
| #endif | |
| +#define luaL_checkany dll_luaL_checkany | |
| #define luaL_checklstring dll_luaL_checklstring | |
| #define luaL_checkinteger dll_luaL_checkinteger | |
| #define luaL_optinteger dll_luaL_optinteger | |
| @@ -117,8 +118,8 @@ | |
| #define lua_pcallk dll_lua_pcallk | |
| #define lua_getglobal dll_lua_getglobal | |
| #define lua_setglobal dll_lua_setglobal | |
| +#endif | |
| #define lua_typename dll_lua_typename | |
| -#endif | |
| #define lua_close dll_lua_close | |
| #define lua_gettop dll_lua_gettop | |
| #define lua_settop dll_lua_settop | |
| @@ -151,6 +152,7 @@ | |
| #define lua_rawset dll_lua_rawset | |
| #define lua_rawseti dll_lua_rawseti | |
| #define lua_setmetatable dll_lua_setmetatable | |
| +#define lua_next dll_lua_next | |
| /* libs */ | |
| #define luaopen_base dll_luaopen_base | |
| #define luaopen_table dll_luaopen_table | |
| @@ -177,6 +179,7 @@ | |
| int (*dll_luaL_loadbufferx) (lua_State *L, const char *buff, size_t sz, const char *name, const char *mode); | |
| int (*dll_luaL_argerror) (lua_State *L, int numarg, const char *extramsg); | |
| #endif | |
| +void (*dll_luaL_checkany) (lua_State *L, int narg); | |
| const char *(*dll_luaL_checklstring) (lua_State *L, int numArg, size_t *l); | |
| lua_Integer (*dll_luaL_checkinteger) (lua_State *L, int numArg); | |
| lua_Integer (*dll_luaL_optinteger) (lua_State *L, int nArg, lua_Integer def); | |
| @@ -201,8 +204,8 @@ | |
| int ctx, lua_CFunction k); | |
| void (*dll_lua_getglobal) (lua_State *L, const char *var); | |
| void (*dll_lua_setglobal) (lua_State *L, const char *var); | |
| +#endif | |
| const char *(*dll_lua_typename) (lua_State *L, int tp); | |
| -#endif | |
| void (*dll_lua_close) (lua_State *L); | |
| int (*dll_lua_gettop) (lua_State *L); | |
| void (*dll_lua_settop) (lua_State *L, int idx); | |
| @@ -235,6 +238,7 @@ | |
| void (*dll_lua_rawset) (lua_State *L, int idx); | |
| void (*dll_lua_rawseti) (lua_State *L, int idx, int n); | |
| int (*dll_lua_setmetatable) (lua_State *L, int objindex); | |
| +int (*dll_lua_next) (lua_State *L, int idx); | |
| /* libs */ | |
| int (*dll_luaopen_base) (lua_State *L); | |
| int (*dll_luaopen_table) (lua_State *L); | |
| @@ -268,6 +272,7 @@ | |
| {"luaL_loadbufferx", (luaV_function) &dll_luaL_loadbufferx}, | |
| {"luaL_argerror", (luaV_function) &dll_luaL_argerror}, | |
| #endif | |
| + {"luaL_checkany", (luaV_function) &dll_luaL_checkany}, | |
| {"luaL_checklstring", (luaV_function) &dll_luaL_checklstring}, | |
| {"luaL_checkinteger", (luaV_function) &dll_luaL_checkinteger}, | |
| {"luaL_optinteger", (luaV_function) &dll_luaL_optinteger}, | |
| @@ -290,8 +295,8 @@ | |
| {"lua_pcallk", (luaV_function) &dll_lua_pcallk}, | |
| {"lua_getglobal", (luaV_function) &dll_lua_getglobal}, | |
| {"lua_setglobal", (luaV_function) &dll_lua_setglobal}, | |
| +#endif | |
| {"lua_typename", (luaV_function) &dll_lua_typename}, | |
| -#endif | |
| {"lua_close", (luaV_function) &dll_lua_close}, | |
| {"lua_gettop", (luaV_function) &dll_lua_gettop}, | |
| {"lua_settop", (luaV_function) &dll_lua_settop}, | |
| @@ -324,6 +329,7 @@ | |
| {"lua_rawset", (luaV_function) &dll_lua_rawset}, | |
| {"lua_rawseti", (luaV_function) &dll_lua_rawseti}, | |
| {"lua_setmetatable", (luaV_function) &dll_lua_setmetatable}, | |
| + {"lua_next", (luaV_function) &dll_lua_next}, | |
| /* libs */ | |
| {"luaopen_base", (luaV_function) &dll_luaopen_base}, | |
| {"luaopen_table", (luaV_function) &dll_luaopen_table}, |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment