Sha256: 39dd72943a640108c8f54f868d79796e34d07b5824a423f7487ed1e31264f48c
Contents?: true
Size: 373 Bytes
Versions: 1
Compression:
Stored size: 373 Bytes
Contents
require 'ludy/tasks/common' module Kernel def debug_include '#ifndef NDEBUG #include <iostream> #endif' end def debug_hook name, &block Ludy::erbout name, block.binding block.call Ludy::erbout \ "#ifndef NDEBUG std::cerr << \"method #{name} called, for \" << this << \" at \" << __FILE__ << \": \" << __LINE__ << '\\n'; #endif", block.binding end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ludy-0.1.7 | lib/ludy/tasks/preprocess_cpp/debug_hook.rb |