commit | a3f94e0030dc209f4d180531878cede7a1e2dbbe | [log] [tgz] |
---|---|---|
author | Damien George <damien.p.george@gmail.com> | Sun Apr 20 00:13:22 2014 +0100 |
committer | Damien George <damien.p.george@gmail.com> | Sun Apr 20 00:13:22 2014 +0100 |
tree | 3a37a5ea97763c8e6df9431401ed2345bdca14eb | |
parent | 27dd471098e5d27949826295e821df972d9af083 [diff] [blame] |
py: Add arg checking helper functions. These are to assist in writing native C functions that take positional and keyword arguments. mp_arg_check_num is for just checking the number of arguments is correct. mp_arg_parse_all is for parsing positional and keyword arguments with default values.
diff --git a/py/py.mk b/py/py.mk index dd6ddd0..5b0dd3d 100644 --- a/py/py.mk +++ b/py/py.mk
@@ -40,6 +40,7 @@ parsenum.o \ emitglue.o \ runtime.o \ + argcheck.o \ map.o \ obj.o \ objarray.o \