Commit a1d835d9 authored by Chris Toshok's avatar Chris Toshok

create an Ellipsis builtin

parent 52d1d182
......@@ -906,6 +906,12 @@ Box* pydumpAddr(Box* p) {
void setupBuiltins() {
builtins_module = createModule("__builtin__", "__builtin__");
BoxedHeapClass* ellipsis_cls = new BoxedHeapClass(object_cls, NULL, 0, sizeof(Box), false, "ellipsis");
Box* Ellipsis = new (ellipsis_cls) Box();
assert(Ellipsis->cls);
gc::registerPermanentRoot(Ellipsis);
builtins_module->giveAttr("Ellipsis", Ellipsis);
builtins_module->giveAttr("None", None);
builtins_module->giveAttr("__debug__", False);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment