2
0
mirror of https://github.com/boostorg/python.git synced 2026-01-22 05:22:45 +00:00
Files
python/pyste/example/enums.pyste
Bruno da Silva de Oliveira 7d5c453f59 no message
[SVN r17825]
2003-03-12 01:39:28 +00:00

9 lines
213 B
Plaintext

color = Enum('test::color', 'enums.h')
rename(color.red, 'Red')
rename(color.blue, 'Blue')
X = Class('test::X', 'enums.h')
rename(X.choices.bad, 'Bad')
rename(X.choices.good, 'Good')
rename(X.choices, 'Choices')