Arquivos
hhvm/hphp/runtime/base/hphp_value.cpp
T
Sara Golemon c3193512d6 Pull DataType and related asserts/macros/inlines into separate header
Allows DataType to be referenced without having
to pull in the entire kitchen sink of hphp/runtime.

This will be used by the bootstrap process for creating
ext_hhvm, infotabs, constants, systemlib, and class_map.
2013-05-30 17:33:03 -07:00

33 linhas
1.4 KiB
C++

/*
+----------------------------------------------------------------------+
| HipHop for PHP |
+----------------------------------------------------------------------+
| Copyright (c) 2010- Facebook, Inc. (http://www.facebook.com) |
+----------------------------------------------------------------------+
| This source file is subject to version 3.01 of the PHP license, |
| that is bundled with this package in the file LICENSE, and is |
| available through the world-wide-web at the following url: |
| http://www.php.net/license/3_01.txt |
| If you did not receive a copy of the PHP license and are unable to |
| obtain it through the world-wide-web, please send a note to |
| license@php.net so we can mail you a copy immediately. |
+----------------------------------------------------------------------+
*/
#include "hphp/runtime/base/complex_types.h"
#include "hphp/util/trace.h"
namespace HPHP {
//////////////////////////////////////////////////////////////////////
std::string TypedValue::pretty() const {
char buf[20];
sprintf(buf, "0x%lx", long(m_data.num));
return Trace::prettyNode(tname(m_type).c_str(), std::string(buf));
}
//////////////////////////////////////////////////////////////////////
}