lib/dub/lua/function_gen.rb in dub-0.6.1 vs lib/dub/lua/function_gen.rb in dub-0.6.2

- old
+ new

@@ -16,25 +16,26 @@ 'int', 'size_t', 'unsigned int', 'uint', 'uchar', + 'char', ] BOOL_TYPES = [ 'bool', ] def initialize load_erb end - + def template_path=(template_path) @template_path = template_path load_erb end - + # Produce bindings for a group of overloaded functions def group(group) @group = group if @group.members @group_template.result(binding) @@ -245,10 +246,10 @@ list << [k, v] end end list.flatten end - + def load_erb @function_template = ::ERB.new(File.read(@template_path ||File.join(File.dirname(__FILE__), 'function.cpp.erb'))) @group_template = ::ERB.new(File.read(File.join(File.dirname(__FILE__), 'group.cpp.erb'))) end end # FunctionGen