Skip to content

Commit 4c1b308

Browse files
committed
this
1 parent ce37db4 commit 4c1b308

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/rubex/ast/top_statement/klass/attached_klass.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,8 @@ def write_alloc_c_function(code)
131131
# TODO: modify for supporting inheritance
132132
def member_struct_allocations
133133
c_name = @scope.find(@attached_type).c_name
134-
"data->#{Rubex::POINTER_PREFIX + @attached_type} = (#{c_name}*)xmalloc(sizeof(#{c_name}));\n"
134+
binding.pry
135+
data->#{Rubex::POINTER_PREFIX + @attached_type} = (#{c_name}*)xmalloc(sizeof(#{c_name}));\n"
135136
end
136137

137138
# Actually write the dealloc function into C code.

0 commit comments

Comments
 (0)