Skip to content
Snippets Groups Projects
Select Git revision
  • cecaa6eacdd6a549e41e0dfd4b50d8a4487b98c1
  • master default protected
  • esp32-nimble-wiki
  • rahix/hw-lock-new-mutex
  • dx/somewhat-more-dynamic-config
  • schneider/sdk-0.2.1-7
  • schneider/bsec
  • dx/meh-bdf-to-stm
  • dx/flatten-config-module
  • genofire/ble-follow-py
  • schneider/ble-stability
  • schneider/ble-stability-new-phy
  • add_menu_vibration
  • plaetzchen/ios-workaround
  • blinkisync-as-preload
  • schneider/max30001-pycardium
  • schneider/max30001-epicaridum
  • schneider/max30001
  • schneider/stream-locks
  • schneider/fundamental-test
  • schneider/ble-buffers
  • v1.12
  • v1.11
  • v1.10
  • v1.9
  • v1.8
  • v1.7
  • v1.6
  • v1.5
  • v1.4
  • v1.3
  • v1.2
  • v1.1
  • v1.0
  • release-1
  • bootloader-v1
  • v0.0
37 results

stack_setup.c

Blame
  • Forked from card10 / firmware
    Source project has a limited visibility.
    logic_constfolding.py 442 B
    # tests logical constant folding in parser
    
    def f_true():
        print('f_true')
        return True
    
    def f_false():
        print('f_false')
        return False
    
    print(0 or False)
    print(1 or foo)
    print(f_false() or 1 or foo)
    print(f_false() or 1 or f_true())
    
    print(0 and foo)
    print(1 and True)
    print(f_true() and 0 and foo)
    print(f_true() and 1 and f_false())
    
    print(not 0)
    print(not False)
    print(not 1)
    print(not True)
    print(not not 0)
    print(not not 1)