We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ce37db4 commit 4c1b308Copy full SHA for 4c1b308
lib/rubex/ast/top_statement/klass/attached_klass.rb
@@ -131,7 +131,8 @@ def write_alloc_c_function(code)
131
# TODO: modify for supporting inheritance
132
def member_struct_allocations
133
c_name = @scope.find(@attached_type).c_name
134
- "data->#{Rubex::POINTER_PREFIX + @attached_type} = (#{c_name}*)xmalloc(sizeof(#{c_name}));\n"
+ binding.pry
135
+ data->#{Rubex::POINTER_PREFIX + @attached_type} = (#{c_name}*)xmalloc(sizeof(#{c_name}));\n"
136
end
137
138
# Actually write the dealloc function into C code.
0 commit comments