36 lines
598 B
Python
36 lines
598 B
Python
"""
|
|
Auto-generated Python stub file from enumtest.py
|
|
Module: enumtest
|
|
"""
|
|
|
|
|
|
import t, c
|
|
from t import CInt, CPtr, CChar, CInt32T, CExport
|
|
import viperlib
|
|
import stdlib
|
|
|
|
class Color(t.CEnum):
|
|
Red = 0
|
|
Green = 1
|
|
Blue = 2
|
|
class Option(t.REnum):
|
|
class Some:
|
|
value: CInt
|
|
Empty = 1
|
|
class Result(t.REnum):
|
|
class Ok:
|
|
value: CInt
|
|
class Err:
|
|
msg: t.CChar | CPtr
|
|
class GeoShape(t.REnum):
|
|
class GCircle:
|
|
radius: CInt
|
|
class GRect:
|
|
w: CInt
|
|
h: CInt
|
|
class GPoint:
|
|
x: CInt
|
|
y: CInt
|
|
|
|
def enum_main() -> CInt: pass
|