diff options
author | Rainer Schuetze <r.sagitario@gmx.de> | 2014-12-04 07:46:41 (GMT) |
---|---|---|
committer | Rainer Schuetze <r.sagitario@gmx.de> | 2014-12-04 07:46:41 (GMT) |
commit | bd5029b0462023e27021c23ae1b7c50d00876d97 (patch) | |
tree | d0ad58938d2b7662c49f990fd9b97038abe2a8c4 /autoexp.visualizer | |
parent | 8d1b702903d863eee02a6b7a8e7a921d75682656 (diff) | |
download | cv2pdb-bd5029b0462023e27021c23ae1b7c50d00876d97.zip cv2pdb-bd5029b0462023e27021c23ae1b7c50d00876d97.tar.gz cv2pdb-bd5029b0462023e27021c23ae1b7c50d00876d97.tar.bz2 |
* tweaked visualizer macros to display void[], limit array preview to 64 entries
* added VS2013 projects + solution
Diffstat (limited to 'autoexp.visualizer')
-rw-r--r-- | autoexp.visualizer | 59 |
1 files changed, 42 insertions, 17 deletions
diff --git a/autoexp.visualizer b/autoexp.visualizer index f5c664c..a5772f1 100644 --- a/autoexp.visualizer +++ b/autoexp.visualizer @@ -25,14 +25,38 @@ dchar[]|const(dchar)[]|immutable(dchar)[] { const void[]|void[] {
preview (
#if ($e.ptr == 0) ( "null" )
- #else (
- #( "[", $e.length, "] ", [(void*) $e.ptr] )
+ #elif($e.length > 4096) (
+ #( "[", $e.length, "] ", (void*) $e.ptr, " too large for expansion" )
+ )
+ #elif($e.length > 64) (
+ #( "[", $e.length, "]( ",
+ #array( expr:((unsigned char*)$e.ptr)[$i], size:64 ),
+ ",...)"
+ )
+ )
+ #else (
+ #(
+ "[", $e.length, "](",
+ #array ( expr : ((unsigned char*)$e.ptr)[$i], size : $e.length ),
+ ")"
+ )
)
)
children (
- #(
- length: [$e.length],
- ptr: [(void*) $e.ptr]
+ #if($e.length > 4096) (
+ #(
+ length: [$e.length],
+ ptr: [(void*) $e.ptr]
+ )
+ )
+ #else (
+ #(
+ length: [$e.length],
+ #array (
+ expr: ((unsigned char*)$e.ptr)[$i],
+ size: $e.length
+ )
+ )
)
)
}
@@ -41,19 +65,20 @@ const void[]|void[] { *[]|dArray* {
preview (
#if ($e.ptr == 0) ( "null" )
- #else (
- #if($e.length > 1024) (
- #( "[", $e.length, "] ", (void*) $e.ptr, " too large for expansion" )
+ #elif($e.length > 4096) (
+ #( "[", $e.length, "] ", (void*) $e.ptr, " too large for expansion" )
+ )
+ #elif($e.length > 64) (
+ #( "[", $e.length, "]( ",
+ #array( expr:($e.ptr)[$i], size:64 ),
+ ",...)"
)
- #else (
- #(
- "[", $e.length, "](",
- #array (
- expr : ($e.ptr)[$i],
- size : $e.length
- ),
- ")"
- )
+ )
+ #else (
+ #(
+ "[", $e.length, "](",
+ #array ( expr : ($e.ptr)[$i], size : $e.length ),
+ ")"
)
)
)
|