Fix '...' missing in output
This commit is contained in:
@@ -269,6 +269,9 @@ void print_const(PycRef<PycObject> obj, PycModule* mod)
|
||||
case PycObject::TYPE_FALSE:
|
||||
fprintf(pyc_output, "False");
|
||||
break;
|
||||
case PycObject::TYPE_ELLIPSIS:
|
||||
fprintf(pyc_output, "...");
|
||||
break;
|
||||
case PycObject::TYPE_INT:
|
||||
fprintf(pyc_output, "%d", obj.cast<PycInt>()->value());
|
||||
break;
|
||||
|
@@ -185,6 +185,9 @@ void output_object(PycRef<PycObject> obj, PycModule* mod, int indent)
|
||||
case PycObject::TYPE_TRUE:
|
||||
iprintf(indent, "True\n");
|
||||
break;
|
||||
case PycObject::TYPE_ELLIPSIS:
|
||||
iprintf(indent, "...\n");
|
||||
break;
|
||||
case PycObject::TYPE_INT:
|
||||
iprintf(indent, "%d\n", obj.cast<PycInt>()->value());
|
||||
break;
|
||||
|
Reference in New Issue
Block a user