Summary: Aids in debugging dynamic types, etc.
Test Plan: unit tests
Reviewed By: delong.j@fb.com
FB internal diff:
D812385
#undef DEF_TYPE
+const char* dynamic::typeName() const {
+ return typeName(type_);
+}
+
//////////////////////////////////////////////////////////////////////
}
*/
Type type() const;
+ /*
+ * Returns the type of this dynamic as a printable string.
+ */
+ const char* typeName() const;
+
/*
* Extract a value while trying to convert to the specified type.
* Throws exceptions if we cannot convert from the real type to the