snapshot before regression test
This commit is contained in:
85
Test/TestProject3/temp/64ac83614c9bdbc6.pyi
Normal file
85
Test/TestProject3/temp/64ac83614c9bdbc6.pyi
Normal file
@@ -0,0 +1,85 @@
|
||||
"""
|
||||
Auto-generated Python stub file from definetest.py
|
||||
Module: definetest
|
||||
"""
|
||||
|
||||
|
||||
import t, c
|
||||
from t import CInt, CInt32T, CUInt32T, CUInt64T, CFloat64T, CPtr, CChar, CDefine, CUInt16T
|
||||
import viperlib
|
||||
import stdlib
|
||||
import platmacro
|
||||
|
||||
MAX_SIZE: t.CDefine = 1024
|
||||
MIN_VAL: t.CDefine = 0
|
||||
MAX_VAL: t.CDefine = 100
|
||||
MASK_BYTE: t.CDefine = 0xFF
|
||||
SHIFT_BITS: t.CDefine = 8
|
||||
PI_INT: t.CDefine = 3
|
||||
ENABLED: t.CDefine = 1
|
||||
DISABLED: t.CDefine = 0
|
||||
PAGE_SIZE: t.CDefine = 4096
|
||||
BUFFER_LEN: t.CDefine = 256
|
||||
CODE_SEG: t.CDefine | t.CUInt16T = 0x08
|
||||
DATA_SEG: t.CDefine | t.CUInt16T = 0x10
|
||||
STACK_SEG: t.CDefine | t.CUInt16T = 0x20
|
||||
|
||||
def MAKE_FLAG(bit: CInt32T) -> t.CDefine:
|
||||
return 1 << bit
|
||||
|
||||
def CLAMP(x: CInt32T, lo: CInt32T, hi: CInt32T) -> t.CDefine:
|
||||
if x < lo:
|
||||
return lo
|
||||
if x > hi:
|
||||
return hi
|
||||
return x
|
||||
|
||||
def test_basic_define() -> CInt: pass
|
||||
|
||||
def test_define_arithmetic() -> CInt: pass
|
||||
|
||||
def test_define_conditional() -> CInt: pass
|
||||
|
||||
def test_define_loop() -> CInt: pass
|
||||
|
||||
def test_typed_define() -> CInt: pass
|
||||
|
||||
def test_define_function() -> CInt: pass
|
||||
|
||||
def test_define_clamp() -> CInt: pass
|
||||
|
||||
def test_define_string() -> CInt: pass
|
||||
|
||||
def test_define_combined() -> CInt: pass
|
||||
|
||||
def test_cif_basic() -> CInt: pass
|
||||
|
||||
def test_cif_elif_else() -> CInt: pass
|
||||
|
||||
def test_cifdef_cifndef() -> CInt: pass
|
||||
|
||||
def test_cif_platform() -> CInt: pass
|
||||
|
||||
def test_cif_nested() -> CInt: pass
|
||||
|
||||
def test_cif_expr() -> CInt: pass
|
||||
|
||||
def test_platmacro_platform() -> CInt: pass
|
||||
|
||||
def test_platmacro_sizes() -> CInt: pass
|
||||
|
||||
def test_platmacro_endian() -> CInt: pass
|
||||
|
||||
def test_platmacro_features() -> CInt: pass
|
||||
|
||||
def test_platmacro_align() -> CInt: pass
|
||||
|
||||
def test_cifdef_cross_module() -> CInt: pass
|
||||
|
||||
def test_cifdef_guard() -> CInt: pass
|
||||
|
||||
def test_cifdef_undefined() -> CInt: pass
|
||||
|
||||
def test_cifdef_complex() -> CInt: pass
|
||||
|
||||
def define_main() -> CInt: pass
|
||||
Reference in New Issue
Block a user