ludy 0.1.6 → 0.1.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/CHANGES +4 -0
- data/Manifest.txt +1 -0
- data/README +1 -1
- data/Rakefile +1 -1
- data/TODO +1 -0
- data/lib/ludy.rb +1 -1
- data/lib/ludy/tasks/preprocess_cpp/debug_hook.rb +18 -0
- metadata +2 -1
data/CHANGES
CHANGED
data/Manifest.txt
CHANGED
@@ -58,6 +58,7 @@ lib/ludy/tasks.rb
|
|
58
58
|
lib/ludy/tasks/common.rb
|
59
59
|
lib/ludy/tasks/preprocess_cpp.rb
|
60
60
|
lib/ludy/tasks/preprocess_cpp/attr_builder.rb
|
61
|
+
lib/ludy/tasks/preprocess_cpp/debug_hook.rb
|
61
62
|
lib/ludy/tasks/preprocess_cpp/header_guard.rb
|
62
63
|
lib/ludy/tasks/preprocess_cpp/template_forward_parameters.rb
|
63
64
|
lib/ludy/test/helper.rb
|
data/README
CHANGED
data/Rakefile
CHANGED
@@ -21,7 +21,7 @@ PROJ.description = paragraphs_of('README', 1).join("\n\n")
|
|
21
21
|
PROJ.changes = paragraphs_of('CHANGES', 0..1).join("\n\n")
|
22
22
|
PROJ.rubyforge_name = 'ludy'
|
23
23
|
|
24
|
-
PROJ.version = '0.1.
|
24
|
+
PROJ.version = '0.1.7'
|
25
25
|
PROJ.exclude << '.DS_Store' << '^tmp'
|
26
26
|
PROJ.dependencies << 'rake'
|
27
27
|
|
data/TODO
CHANGED
data/lib/ludy.rb
CHANGED
@@ -0,0 +1,18 @@
|
|
1
|
+
|
2
|
+
require 'ludy/tasks/common'
|
3
|
+
|
4
|
+
module Kernel
|
5
|
+
def debug_include
|
6
|
+
'#ifndef NDEBUG
|
7
|
+
#include <iostream>
|
8
|
+
#endif'
|
9
|
+
end
|
10
|
+
def debug_hook name, &block
|
11
|
+
Ludy::erbout name, block.binding
|
12
|
+
block.call
|
13
|
+
Ludy::erbout \
|
14
|
+
"#ifndef NDEBUG
|
15
|
+
std::cerr << \"method #{name} called, for \" << this << \" at \" << __FILE__ << \": \" << __LINE__ << '\\n';
|
16
|
+
#endif", block.binding
|
17
|
+
end
|
18
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ludy
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- "Lin Jen-Shin (a.k.a. godfat \xE7\x9C\x9F\xE5\xB8\xB8)"
|
@@ -103,6 +103,7 @@ files:
|
|
103
103
|
- lib/ludy/tasks/common.rb
|
104
104
|
- lib/ludy/tasks/preprocess_cpp.rb
|
105
105
|
- lib/ludy/tasks/preprocess_cpp/attr_builder.rb
|
106
|
+
- lib/ludy/tasks/preprocess_cpp/debug_hook.rb
|
106
107
|
- lib/ludy/tasks/preprocess_cpp/header_guard.rb
|
107
108
|
- lib/ludy/tasks/preprocess_cpp/template_forward_parameters.rb
|
108
109
|
- lib/ludy/test/helper.rb
|