xref: /haiku/src/apps/debugger/user_interface/gui/value/value_handlers/AddressValueHandler.cpp (revision 20df96b029ae00b592e754ff66404b12e7e12414)
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
SupportsValue(Value * value)13 AddressValueHandler::SupportsValue(Value* value)
14 {
15 	return dynamic_cast<AddressValue*>(value) ? 0.8f : 0;
16 }
17 
18 
19 integer_format
DefaultIntegerFormat(IntegerValue * value)20 AddressValueHandler::DefaultIntegerFormat(IntegerValue* value)
21 {
22 	return INTEGER_FORMAT_HEX_DEFAULT;
23 }
24