Skip to content
Snippets Groups Projects
Select Git revision
  • aaa8867d4a4a1274ea43429c00e8bdfa6b28a015
  • wip-bootstrap default
  • dualcore
  • ch3/leds
  • ch3/time
  • master
6 results

qstrdefs.h

Blame
  • qstrdefs.h 8.05 KiB
    /*
     * This file is part of the Micro Python project, http://micropython.org/
     *
     * The MIT License (MIT)
     *
     * Copyright (c) 2013, 2014 Damien P. George
     *
     * Permission is hereby granted, free of charge, to any person obtaining a copy
     * of this software and associated documentation files (the "Software"), to deal
     * in the Software without restriction, including without limitation the rights
     * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
     * copies of the Software, and to permit persons to whom the Software is
     * furnished to do so, subject to the following conditions:
     *
     * The above copyright notice and this permission notice shall be included in
     * all copies or substantial portions of the Software.
     *
     * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
     * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
     * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
     * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
     * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
     * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
     * THE SOFTWARE.
     */
    
    #include "py/mpconfig.h"
    
    // All the qstr definitions in this file are available as constants.
    // That is, they are in ROM and you can reference them simply as MP_QSTR_xxxx.
    
    // qstr configuration passed to makeqstrdata.py of the form QCFG(key, value)
    QCFG(BYTES_IN_LEN, MICROPY_QSTR_BYTES_IN_LEN)
    QCFG(BYTES_IN_HASH, MICROPY_QSTR_BYTES_IN_HASH)
    
    Q()
    Q(*)
    Q(__build_class__)
    Q(__class__)
    Q(__doc__)
    Q(__import__)
    Q(__init__)
    Q(__new__)
    Q(__locals__)
    Q(__main__)
    Q(__module__)
    Q(__name__)
    Q(__hash__)
    Q(__next__)
    Q(__qualname__)
    Q(__path__)
    Q(__repl_print__)
    #if MICROPY_PY___FILE__
    Q(__file__)
    #endif
    
    Q(__bool__)
    Q(__contains__)
    Q(__enter__)
    Q(__exit__)
    Q(__len__)
    Q(__iter__)
    Q(__getitem__)
    Q(__setitem__)
    Q(__delitem__)
    Q(__add__)
    Q(__sub__)
    Q(__repr__)
    Q(__str__)
    #if MICROPY_PY_DESCRIPTORS