1. 20 Feb, 2018 1 commit
  2. 19 Oct, 2017 1 commit
    • Damien George's avatar
      py/argcheck: Remove #if guard around terse error message helper func. · 93ce125a
      Damien George authored
      Not all compilers/analysers are smart enough to realise that this function
      is never called if MICROPY_ERROR_REPORTING is not TERSE, because the logic
      in the code uses if statements rather than #if to select whether to call
      this function or not (MSC in debug mode is an example of this, but there
      are others).  So just unconditionally compile this helper function.  The
      code-base anyway relies on the linker to remove unused functions.
      93ce125a
  3. 04 Oct, 2017 1 commit
    • Damien George's avatar
      all: Remove inclusion of internal py header files. · a3dc1b19
      Damien George authored
      Header files that are considered internal to the py core and should not
      normally be included directly are:
          py/nlr.h - internal nlr configuration and declarations
          py/bc0.h - contains bytecode macro definitions
          py/runtime0.h - contains basic runtime enums
      
      Instead, the top-level header files to include are one of:
          py/obj.h - includes runtime0.h and defines everything to use the
              mp_obj_t type
          py/runtime.h - includes mpstate.h and hence nlr.h, obj.h, runtime0.h,
              and defines everything to use the general runtime support functions
      
      Additional, specific headers (eg py/objlist.h) can be included if needed.
      a3dc1b19
  4. 13 Aug, 2017 1 commit
    • Javier Candeira's avatar
      all: Raise exceptions via mp_raise_XXX · 35a1fea9
      Javier Candeira authored
        - Changed: ValueError, TypeError, NotImplementedError
        - OSError invocations unchanged, because the corresponding utility
          function takes ints, not strings like the long form invocation.
        - OverflowError, IndexError and RuntimeError etc. not changed for now
          until we decide whether to add new utility functions.
      35a1fea9
  5. 31 Jul, 2017 1 commit
  6. 28 Mar, 2017 1 commit
  7. 17 Oct, 2016 1 commit
  8. 30 Sep, 2016 1 commit
  9. 14 Mar, 2016 1 commit
  10. 03 Sep, 2015 1 commit
  11. 16 Apr, 2015 1 commit
  12. 20 Jan, 2015 1 commit
  13. 02 Jan, 2015 1 commit
    • stijn's avatar
      msvc: Fix unresolved mp_arg_error_terse_mismatch since 7f23384d · fbfd3554
      stijn authored
      The compiler treats `if (MICROPY_ERROR_REPORTING == MICROPY_ERROR_REPORTING_TERSE)` as
      a normal statement and generates assembly for it in degug mode as if MICROPY_ERROR_REPORTING
      is an actual symbol instead of a preprocessor definition.
      As such linking fails because mp_arg_error_terse_mismatch is not defined when
      MICROPY_ERROR_REPORTING_TERSE is detailed or normal.
      fbfd3554
  14. 01 Jan, 2015 2 commits
  15. 06 Nov, 2014 1 commit
  16. 30 Aug, 2014 1 commit
  17. 06 May, 2014 2 commits
  18. 03 May, 2014 1 commit
    • Damien George's avatar
      Add license header to (almost) all files. · 04b9147e
      Damien George authored
      Blanket wide to all .c and .h files.  Some files originating from ST are
      difficult to deal with (license wise) so it was left out of those.
      
      Also merged modpyb.h, modos.h, modstm.h and modtime.h in stmhal/.
      04b9147e
  19. 02 May, 2014 1 commit
  20. 30 Apr, 2014 1 commit
  21. 26 Apr, 2014 1 commit
  22. 20 Apr, 2014 2 commits
  23. 19 Apr, 2014 1 commit
    • Damien George's avatar
      py: Add arg checking helper functions. · a3f94e00
      Damien George authored
      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.
      a3f94e00