Top Level Namespace
- Includes:
- API, RWin
Defined Under Namespace
Constant Summary collapse
- SYSTEM_LIBRARIES =
[ # "uuid", "ole32", "winspool", "comctl32", # "comdlg32", "gdi32", "user32", "kernel32", "gdiplus" ]
- IMAGE_RELOCATION =
RWin::API.defstruct " DWORD VirtualAddress; DWORD SymbolTableIndex; WORD Type;"
- POINTARRAY =
API.defstruct "POINT pt[2]"
- Mytest10 =
API.defstruct 'short x[4], int y[2]'
- Mytest14 =
API.defstruct 'int a[3], Mytest10 b, POINT* c'
- TEST =
POINT = API.defstruct ‘LONG x’, ‘LONG y’
API.defstruct 'int a[3], POINT b, POINT* c'
Constants included from RWin
RWin::RW_VERSION, RWin::UNICODE, RWin::X64
Instance Method Summary collapse
-
#dp(*args) ⇒ Object
debug print.
-
#dpp(*args) ⇒ Object
debug print with line number and inspected arguments.
Instance Method Details
#dp(*args) ⇒ Object
debug print
18 19 20 21 22 23 24 25 26 |
# File 'lib/rwin.rb', line 18 def dp(*args) # debug print if /^(.+?):(\d+)(?::in `.*')?/ =~ caller.first file = File.basename($1) line = $2.to_i end dir = args.shift dir.sub!(/^\@( *)/, "\\1#{file}@#{line}: ") STDERR.puts sprintf(dir, *args) end |
#dpp(*args) ⇒ Object
debug print with line number and inspected arguments
28 29 30 31 32 33 34 |
# File 'lib/rwin.rb', line 28 def dpp(*args) # debug print with line number and inspected arguments if /^(.+?):(\d+)(?::in `.*')?/ =~ caller.first file = File.basename($1) line = $2.to_i end STDERR.puts "#{file}@#{line}: " + sprintf("%p", args).sub(/^\[(.*)\]$/, '\1') end |