def _create_struct(self, struct_def, name): code = " #DATA \n" + struct_def + """ #CODE #END """ mc = Tdasm().assemble(code) return mc.get_struct(name)
def _create_struct(self, shape): code = " #DATA " + shape.asm_struct() + """ #CODE #END """ mc = Tdasm().assemble(code) return mc.get_struct(shape.asm_struct_name())
def _create_struct(self, struct_def, name): code = " #DATA \n" + struct_def + """ #CODE #END """ ia32 = True bits = platform.architecture()[0] if bits == '64bit': ia32 = False mc = Tdasm().assemble(code, ia32=ia32) return mc.get_struct(name)