diff --git a/hscript/Printer.hx b/hscript/Printer.hx index f278b6b..fd04bbf 100644 --- a/hscript/Printer.hx +++ b/hscript/Printer.hx @@ -37,6 +37,13 @@ class Printer { return buf.toString(); } + public function typeToString( t : CType ) { + buf = new StringBuf(); + tabs = ""; + type(t); + return buf.toString(); + } + inline function add(s:T) buf.add(s); function type( t : CType ) {