diff options
Diffstat (limited to '')
| -rw-r--r-- | lua_json.c | 6 |
1 files changed, 3 insertions, 3 deletions
| @@ -261,7 +261,7 @@ int lua_c_json_encode(lua_State *l) | |||
| 261 | char *json; | 261 | char *json; |
| 262 | int len; | 262 | int len; |
| 263 | 263 | ||
| 264 | lua_ensure_arg_count(l, "lua_c_json_encode", 1); | 264 | lua_verify_arg_count(l, 1); |
| 265 | 265 | ||
| 266 | json = lua_json_encode(l, &len); | 266 | json = lua_json_encode(l, &len); |
| 267 | 267 | ||
| @@ -655,7 +655,7 @@ int lua_c_json_decode(lua_State *l) | |||
| 655 | { | 655 | { |
| 656 | const char *json; | 656 | const char *json; |
| 657 | 657 | ||
| 658 | lua_ensure_arg_count(l, "json_c_json_decode", 1); | 658 | lua_verify_arg_count(l, 1); |
| 659 | luaL_argcheck(l, lua_islightuserdata(l, 1), 1, | 659 | luaL_argcheck(l, lua_islightuserdata(l, 1), 1, |
| 660 | "missing lightuserdata"); | 660 | "missing lightuserdata"); |
| 661 | 661 | ||
| @@ -671,7 +671,7 @@ static int lua_api_json_decode(lua_State *l) | |||
| 671 | { | 671 | { |
| 672 | const char *json; | 672 | const char *json; |
| 673 | 673 | ||
| 674 | lua_ensure_arg_count(l, "json.decode", 1); | 674 | lua_verify_arg_count(l, 1); |
| 675 | json = luaL_checkstring(l, 1); | 675 | json = luaL_checkstring(l, 1); |
| 676 | 676 | ||
| 677 | lua_json_decode(l, json); | 677 | lua_json_decode(l, json); |
