xref: /haiku/src/apps/debugger/user_interface/gui/value/value_handlers/AddressValueHandler.cpp (revision 1e60bdeab63fa7a57bc9a55b032052e95a18bd2c)
1 /*
2  * Copyright 2009, Ingo Weinhold, ingo_weinhold@gmx.de.
3  * Distributed under the terms of the MIT License.
4  */
5 
6 
7 #include "AddressValueHandler.h"
8 
9 #include "AddressValue.h"
10 
11 
12 float
13 AddressValueHandler::SupportsValue(Value* value)
14 {
15 	return dynamic_cast<AddressValue*>(value) ? 0.8f : 0;
16 }
17 
18 
19 integer_format
20 AddressValueHandler::DefaultIntegerFormat(IntegerValue* value)
21 {
22 	return INTEGER_FORMAT_HEX_DEFAULT;
23 }
24