Method: Yadriggy::C::CodeGen#name_global_variables

Defined in:
lib/yadriggy/c/codegen.rb

#name_global_variablesvoid

This method returns an undefined value.

Gives a name to each global variable.



307
308
309
310
311
312
313
# File 'lib/yadriggy/c/codegen.rb', line 307

def name_global_variables()
  id = 0
  @typechecker.instance_variables.each do |obj|
    @gvariables[obj] = "_gvar_#{id}_"
    id += 1
  end
end