c - Creating a struct from mach_timebase_info() -


It is easy to create base information structure in C, but SWIFT does not work in the following playground:

But unable to do this without falling under C, I am unable to think in a way. Is there any mistake I'm missing? Any help would be greatly appreciated. : -)

Edit: Actually I see the problem above "A", "=" does not make any sense but I also tried the following:

  Timebase Infote: mach_timebase_info_data_t mach_timebase_info (& amp; timebaseInfo) ' 

Error with the timebase input used before the initial time. : - << p>

You will find unsafe indicator & lt; Type & gt; will be required, as follows:

  f = uncommitted pointer & lt; Mach_timebase_info_data_t & gt; .alloc (1) mach_timebase_info (& amp; p.memory)  

Comments