the cinterop parser is better with C than CPP mac...
# kotlin-native
j
the cinterop parser is better with C than CPP macros I have found. I have something like
Copy code
/* This is x86 specific
#define read_barrier()  __asm__ __volatile__("":::"memory")
#define write_barrier() __asm__ __volatile__("":::"memory") */

 static inline void  read_barrier() { __asm__ __volatile__("" ::: "memory") ;}
 static inline void  write_barrier() { __asm__ __volatile__("" ::: "memory"); }
where the macros don't appear as symbols I can call but the inline functions do. Given the intent, does the obj reproduce the asm membarriers faithfully here?