Product Documentation
Cadence SKILL Development Reference
Product Version IC23.1, June 2023

printObject

printObject( 
g_object 
[ p_outputPort ] 
) 
=> g_result

Description

Writes a description of an object to an output port.

If you define a method for this generic function, it should call one or more of the SKILL print functions. See Generic Functions.

Arguments

g_object

Object whose print representation you want.

p_outputPort

Specified output port.

Value Returned

g_result

The return value of the method that was called.

Examples

P = makeInstance( 'Point ?name "P" ?x 3 ?y 4 ) 
=> stdobj:0x1d003c
ILS-<2> defmethod( printObject ((p Point)
@optional ( port poport ))
fprintf( poport "%s @ %n:%n\n" p->name p->x p->y )
nil
)
t
ILS-<2> printObject( P )
P @ 3:4
nil

Prints P @ 3:4, the location of P.

ILS-<2> defstruct( card rank suit )
t
ILS-<2> mycard = make_card( ?rank 2 ?suit "spades" )
array[4]:2304000
ILS-<2> addDefstructClass( card )
funobj:0x1c98f8
ILS-<2> printObject( mycard )
Loading skillDev.cxt
Structure of type card:
rank: 2
suit: "spades"
t

Related Topics

Debug Functions


Return to top
 ⠀
X